@@ -37,6 +37,9 @@ public sealed class PostProcessLayerEditor : BaseEditor<PostProcessLayer>
3737 SerializedProperty m_DebugMonitor ;
3838 SerializedProperty m_DebugLightMeter ;
3939
40+ SerializedProperty m_ShowToolkit ;
41+ SerializedProperty m_ShowCustomSorter ;
42+
4043 Dictionary < PostProcessEvent , ReorderableList > m_CustomLists ;
4144
4245 static GUIContent [ ] s_AntialiasingMethodNames =
@@ -80,6 +83,9 @@ void OnEnable()
8083 m_DebugMonitor = FindProperty ( x => x . debugView . monitor ) ;
8184 m_DebugLightMeter = FindProperty ( x => x . debugView . lightMeter ) ;
8285
86+ m_ShowToolkit = serializedObject . FindProperty ( "m_ShowToolkit" ) ;
87+ m_ShowCustomSorter = serializedObject . FindProperty ( "m_ShowCustomSorter" ) ;
88+
8389 // In case of domain reload, if the inspector is opened on a disabled PostProcessLayer
8490 // component it won't go through its OnEnable() and thus will miss bundle initialization
8591 // so force it there - also for some reason, an editor's OnEnable() can be called before
@@ -279,9 +285,9 @@ void DoDebugLayer()
279285 void DoToolkit ( )
280286 {
281287 EditorUtilities . DrawSplitter ( ) ;
282- GlobalSettings . showLayerToolkit = EditorUtilities . DrawHeader ( "Toolkit" , GlobalSettings . showLayerToolkit ) ;
288+ m_ShowToolkit . boolValue = EditorUtilities . DrawHeader ( "Toolkit" , m_ShowToolkit . boolValue ) ;
283289
284- if ( GlobalSettings . showLayerToolkit )
290+ if ( m_ShowToolkit . boolValue )
285291 {
286292 GUILayout . Space ( 2 ) ;
287293
@@ -328,9 +334,9 @@ void DoToolkit()
328334 void DoCustomEffectSorter ( )
329335 {
330336 EditorUtilities . DrawSplitter ( ) ;
331- GlobalSettings . showCustomSorter = EditorUtilities . DrawHeader ( "Custom Effect Sorting" , GlobalSettings . showCustomSorter ) ;
337+ m_ShowCustomSorter . boolValue = EditorUtilities . DrawHeader ( "Custom Effect Sorting" , m_ShowCustomSorter . boolValue ) ;
332338
333- if ( GlobalSettings . showCustomSorter )
339+ if ( m_ShowCustomSorter . boolValue )
334340 {
335341 GUILayout . Space ( 5 ) ;
336342
0 commit comments