UnityEditor.Editor.OptimizedInspectorGUIImplementation C# (CSharp) Method

OptimizedInspectorGUIImplementation() private method

private OptimizedInspectorGUIImplementation ( Rect contentRect ) : bool
contentRect UnityEngine.Rect
return bool
        internal bool OptimizedInspectorGUIImplementation(Rect contentRect)
        {
            SerializedProperty iterator = this.m_SerializedObject.GetIterator();
            bool enterChildren = true;
            bool enabled = GUI.enabled;
            contentRect.xMin += 14f;
            contentRect.xMax -= 4f;
            contentRect.y += 2f;
            while (iterator.NextVisible(enterChildren))
            {
                contentRect.height = EditorGUI.GetPropertyHeight(iterator, null, false);
                EditorGUI.indentLevel = iterator.depth;
                using (new EditorGUI.DisabledScope((this.m_InspectorMode == InspectorMode.Normal) && ("m_Script" == iterator.propertyPath)))
                {
                    enterChildren = EditorGUI.PropertyField(contentRect, iterator);
                }
                contentRect.y += contentRect.height + 2f;
            }
            GUI.enabled = enabled;
            return this.m_SerializedObject.ApplyModifiedProperties();
        }