summaryrefslogtreecommitdiff
path: root/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample20_RangeValue.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/AIExample20_RangeValue.cs
parente846c64d6f927879cb8a095e62d773a8d7b3c9f4 (diff)
-advanced inspector 对2018兼容性不太好,改用Odin
Diffstat (limited to 'Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample20_RangeValue.cs')
-rw-r--r--Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample20_RangeValue.cs26
1 files changed, 0 insertions, 26 deletions
diff --git a/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample20_RangeValue.cs b/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample20_RangeValue.cs
deleted file mode 100644
index c5365b73..00000000
--- a/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample20_RangeValue.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-using UnityEngine;
-using System;
-using System.Collections;
-
-using AdvancedInspector;
-
-[AdvancedInspector]
-public class AIExample20_RangeValue : MonoBehaviour
-{
- // Unity already have a RangeAttribute.
- // However, this [Range] can only be applied on fields.
- [Inspect, RangeValue(0, 10)]
- public float myField;
-
- // However, the RangeValue attribute can also be applied on property.
- [Inspect, RangeValue(0, 10)]
- public float MyProperty
- {
- get { return myField; }
- set { myField = value; }
- }
-
- // Unity's range attribute also works, but cannot be applied to properties.
- [Inspect, Range(0, 10)]
- public float unityRange;
-}