diff options
Diffstat (limited to 'Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample4_InspectLevel.cs')
-rw-r--r-- | Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample4_InspectLevel.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample4_InspectLevel.cs b/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample4_InspectLevel.cs new file mode 100644 index 00000000..d7af6990 --- /dev/null +++ b/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample4_InspectLevel.cs @@ -0,0 +1,21 @@ +using UnityEngine; +using System.Collections; + +using AdvancedInspector; + +[AdvancedInspector] +public class AIExample4_InspectLevel : MonoBehaviour +{ + // Item can be displayed in "levels". + // Advanced Inspector contains 3 levels; Basic, Advanced, Debug. + [Inspect(InspectorLevel.Basic)] + public bool basicVariable; + + // Higher level can be displayed in the inspector by right-clicking on a label and selecting that level. + [Inspect(InspectorLevel.Advanced)] + public bool advancedVariable; + + // It allows to hide items that are only useful for debug purpose. + [Inspect(InspectorLevel.Debug)] + public bool debugVariable; +} |