Example #1
0
        public SerializedProperty FindProperty(string propertyPath)
        {
            SerializedProperty property = this.GetIterator_Internal();

            property.m_SerializedObject = this;
            if (property.FindPropertyInternal(propertyPath))
            {
                return(property);
            }
            return(null);
        }
Example #2
0
        /// <summary>
        ///   <para>Find serialized property by name.</para>
        /// </summary>
        /// <param name="propertyPath"></param>
        public SerializedProperty FindProperty(string propertyPath)
        {
            SerializedProperty iteratorInternal = this.GetIterator_Internal();

            iteratorInternal.m_SerializedObject = this;
            if (iteratorInternal.FindPropertyInternal(propertyPath))
            {
                return(iteratorInternal);
            }
            return((SerializedProperty)null);
        }
        // Find serialized property by name.
        public SerializedProperty FindProperty(string propertyPath)
        {
            SerializedProperty i = GetIterator_Internal();

            // This is so the garbage collector won't clean up SerializedObject behind the scenes,
            // when we are still iterating properties
            i.m_SerializedObject = this;
            if (i.FindPropertyInternal(propertyPath))
            {
                return(i);
            }
            else
            {
                return(null);
            }
        }
        public SerializedProperty FindProperty(string propertyPath)
        {
            SerializedProperty iterator_Internal = this.GetIterator_Internal();

            iterator_Internal.m_SerializedObject = this;
            SerializedProperty result;

            if (iterator_Internal.FindPropertyInternal(propertyPath))
            {
                result = iterator_Internal;
            }
            else
            {
                result = null;
            }
            return(result);
        }