public override void OnInspectorGUI() { _foldout.Update(); if (!_foldout.OverrideInspector) { base.OnInspectorGUI(); } else { _foldout.OnInspectorGUI(); } _buttonMethod.OnInspectorGUI(); }
public override void OnInspectorGUI() { _buttonMethod?.OnBeforeInspectorGUI(); if (_foldout != null) { _foldout.Update(); if (!_foldout.OverrideInspector) { base.OnInspectorGUI(); } else { _foldout.OnInspectorGUI(); } } _buttonMethod?.OnAfterInspectorGUI(); }