diff options
author | chai <chaifix@163.com> | 2020-10-15 13:53:27 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-10-15 13:53:27 +0800 |
commit | 6990a0d1fbdcbbf404f40713363ac1a148c8840a (patch) | |
tree | cbd92c7a47e12c30cba3300eb349d9c43ce512ab /Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample12_Group.cs | |
parent | e846c64d6f927879cb8a095e62d773a8d7b3c9f4 (diff) |
-advanced inspector 对2018兼容性不太好,改用Odin
Diffstat (limited to 'Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample12_Group.cs')
-rw-r--r-- | Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample12_Group.cs | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample12_Group.cs b/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample12_Group.cs deleted file mode 100644 index d01bcc10..00000000 --- a/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample12_Group.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; -using System.Collections; - -using AdvancedInspector; - -[AdvancedInspector] -public class AIExample12_Group : MonoBehaviour -{ - // Item can be grouped using the Group attribute; - [Inspect, Group("My First Group")] - public float myFirstField; - - [Inspect, Group("My First Group")] - public float MyFirstProperty - { - get { return myFirstField; } - set { myFirstField = value; } - } - - // Flagging it false stops the chaining. - [Inspect, Group("My First Group")] - public void MyFirstMethod() - { - myFirstField++; - } - - // Grouping is done with similar names. - // The second parameter is the order in which the different groups are shown. - [Inspect, Group("My Second Group", 1, Description = "This is some extra text.")] - public float mySecondField; - - [Inspect, Group("My Second Group")] - public float MySecondProperty - { - get { return mySecondField; } - set { mySecondField = value; } - } - - [Inspect, Group("My Second Group")] - public void MySecondMethod() - { - mySecondField++; - } -} |