blob: f3f7014959067bdade00502320c6ccd5c0eded2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using System.Collections;
using AdvancedInspector;
public class AIExample24_Tabs : MonoBehaviour
{
// Tabs work in a manner similar to groups.
// However, only the fields of a single tab is display at the same time.
[Tab(TabEnum.First)]
public float myFirstField;
[Inspect, Tab(TabEnum.First)]
public float MyFirstProperty
{
get { return myFirstField; }
set { myFirstField = value; }
}
[Tab(TabEnum.Second)]
public float mySecondField;
[Inspect, Tab(TabEnum.Second)]
public float MySecondProperty
{
get { return mySecondField; }
set { mySecondField = value; }
}
// Field that are not bound to a tab are displayed after the currently selected tab.
public float myThirdField;
public enum TabEnum
{
First,
Second,
Third
}
}
|