BovineLabs.NaughtyAttributes.Editor.Editors.InspectorEditor.OnInspectorGUI C# (CSharp) Method

OnInspectorGUI() public method

public OnInspectorGUI ( ) : void
return void
        public override void OnInspectorGUI()
        {
            this.serializedObject.Update();

            if (this.drawer != null)
            {
                if (this.script != null)
                {
                    GUI.enabled = false;
                    EditorGUILayout.PropertyField(this.script);
                    GUI.enabled = true;
                }

                this.drawer.OnInspectorGUI();
            }
            else
            {
                this.DrawDefaultInspector();
            }

            this.serializedObject.ApplyModifiedProperties();
        }