summaryrefslogtreecommitdiff
path: root/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample4_InspectLevel.cs
blob: d7af69906e88b7283af86bdb493aeb856ded77fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
}