/// <summary>
        /// <para>Retrieves the SerializedProperty at a relative path to the current property.</para>
        /// </summary>
        /// <param name="relativePropertyPath"></param>
        public SerializedProperty FindPropertyRelative(string relativePropertyPath)
        {
            SerializedProperty property = this.Copy();

            if (property.FindPropertyRelativeInternal(relativePropertyPath))
            {
                return(property);
            }
            return(null);
        }
        // Retrieves the SerializedProperty at a relative path to the current property.
        public SerializedProperty FindPropertyRelative(string relativePropertyPath)
        {
            SerializedProperty prop = Copy();

            if (prop.FindPropertyRelativeInternal(relativePropertyPath))
            {
                return(prop);
            }
            else
            {
                return(null);
            }
        }
Example #3
0
        public SerializedProperty FindPropertyRelative(string relativePropertyPath)
        {
            SerializedProperty serializedProperty = this.Copy();
            SerializedProperty result;

            if (serializedProperty.FindPropertyRelativeInternal(relativePropertyPath))
            {
                result = serializedProperty;
            }
            else
            {
                result = null;
            }
            return(result);
        }