summaryrefslogtreecommitdiff
path: root/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample13_Expandable.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-10-15 13:53:27 +0800
committerchai <chaifix@163.com>2020-10-15 13:53:27 +0800
commit6990a0d1fbdcbbf404f40713363ac1a148c8840a (patch)
treecbd92c7a47e12c30cba3300eb349d9c43ce512ab /Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample13_Expandable.cs
parente846c64d6f927879cb8a095e62d773a8d7b3c9f4 (diff)
-advanced inspector 对2018兼容性不太好,改用Odin
Diffstat (limited to 'Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample13_Expandable.cs')
-rw-r--r--Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample13_Expandable.cs39
1 files changed, 0 insertions, 39 deletions
diff --git a/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample13_Expandable.cs b/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample13_Expandable.cs
deleted file mode 100644
index 41e3a722..00000000
--- a/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample13_Expandable.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using UnityEngine;
-using System;
-using System.Collections;
-
-using AdvancedInspector;
-
-[AdvancedInspector]
-public class AIExample13_Expandable : MonoBehaviour
-{
- // The expandable attribute is used to control if an item can not be expanded, or if it should be expanded by default.
- [Inspect, Expandable(Expanded = true)]
- public ExpandableClass expandedField;
-
- // Preventing an object from being expandable is sometime useful when you want to display its inner content differently.
- [Inspect, Expandable(Expandable = false)]
- public ExpandableClass notExpandableField;
-
- // This class is not expandable by default.
- [Inspect]
- public NotExpandableClass notExpandableObject;
-
- // Class with the AdvancedInspector attribute are automaticly inlinable/expandable.
- [AdvancedInspector, Serializable]
- public class ExpandableClass
- {
- [Inspect]
- public float myField;
- }
-
- // It is possible to prevent that like this;
- // This is useful when you build your own base type similar to how a float is displayed.
- // A good example is the Guid class.
- [AdvancedInspector(Expandable = false), Serializable]
- public class NotExpandableClass
- {
- [Inspect]
- public float myField;
- }
-}