File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 11namespace GenericUnityObjects . Editor
22{
33 using System . Reflection ;
4- using SolidUtilities . Editor ;
54 using UnityEditor ;
65 using UnityEditor . Callbacks ;
76 using UnityEngine ;
8-
7+
98#if MISSING_SCRIPT_TYPE
109 using MissingScriptType . Editor ;
1110#endif
1211
1312#if EASY_BUTTONS
1413 using EasyButtons . Editor ;
1514#endif
16-
15+
1716#if ODIN_INSPECTOR
1817 using Sirenix . OdinInspector ;
1918 using Sirenix . OdinInspector . Editor ;
@@ -40,17 +39,17 @@ private static void OnScriptsReload()
4039 odinEditorTypeField . SetValue ( null , typeof ( UnityObjectEditor ) ) ;
4140 }
4241#endif
43-
42+
4443 private GenericUnityObjectHelper _helper ;
45-
44+
4645#if MISSING_SCRIPT_TYPE
4746 private MissingScriptTypeUtility _missingScriptUtility ;
4847#endif
4948
5049#if EASY_BUTTONS
5150 private ButtonsDrawer _buttonsDrawer ;
5251#endif
53-
52+
5453 protected
5554#if ODIN_INSPECTOR
5655 override
@@ -60,9 +59,9 @@ void OnEnable()
6059#if ODIN_INSPECTOR
6160 base . OnEnable ( ) ;
6261#endif
63-
62+
6463 _helper = new GenericUnityObjectHelper ( target ) ;
65-
64+
6665#if MISSING_SCRIPT_TYPE
6766 try
6867 {
@@ -75,7 +74,7 @@ void OnEnable()
7574 _buttonsDrawer = new ButtonsDrawer ( target ) ;
7675#endif
7776 }
78-
77+
7978 protected override void OnHeaderGUI ( )
8079 {
8180 GenericHeaderUtility . OnHeaderGUI ( this ) ;
@@ -84,7 +83,7 @@ protected override void OnHeaderGUI()
8483 public override void OnInspectorGUI ( )
8584 {
8685 serializedObject . UpdateIfRequiredOrScript ( ) ;
87-
86+
8887 if ( target == null )
8988 {
9089 DrawMissingScript ( ) ;
You can’t perform that action at this time.
0 commit comments