From 95d98188d876da34625e1ec1dcfe2f416baa469c Mon Sep 17 00:00:00 2001 From: SuGar-456 Date: Tue, 3 Feb 2026 15:26:38 +0800 Subject: [PATCH] fix bug --- Editor/NaughtyAttributes/Core.meta | 8 --- .../Core/DrawerAttributes.meta | 8 --- .../DrawerAttributes/AllowNestingAttribute.cs | 9 --- .../AllowNestingAttribute.cs.meta | 11 ---- .../AnimatorParamAttribute.cs | 24 -------- .../AnimatorParamAttribute.cs.meta | 11 ---- .../DrawerAttributes/CurveRangeAttribute.cs | 30 ---------- .../CurveRangeAttribute.cs.meta | 11 ---- .../Core/DrawerAttributes/DrawerAttribute.cs | 11 ---- .../DrawerAttributes/DrawerAttribute.cs.meta | 11 ---- .../DrawerAttributes/DropdownAttribute.cs | 57 ------------------- .../DropdownAttribute.cs.meta | 11 ---- .../DrawerAttributes/EnumFlagsAttribute.cs | 9 --- .../EnumFlagsAttribute.cs.meta | 11 ---- .../Core/DrawerAttributes/Expandable.cs | 9 --- .../Core/DrawerAttributes/Expandable.cs.meta | 11 ---- .../HorizontalLineAttribute.cs | 20 ------- .../HorizontalLineAttribute.cs.meta | 11 ---- .../Core/DrawerAttributes/InfoBoxAttribute.cs | 24 -------- .../DrawerAttributes/InfoBoxAttribute.cs.meta | 11 ---- .../DrawerAttributes/InputAxisAttribute.cs | 9 --- .../InputAxisAttribute.cs.meta | 11 ---- .../Core/DrawerAttributes/LayerAttribute.cs | 9 --- .../DrawerAttributes/LayerAttribute.cs.meta | 11 ---- .../DrawerAttributes/MinMaxSliderAttribute.cs | 17 ------ .../MinMaxSliderAttribute.cs.meta | 11 ---- .../DrawerAttributes/ProgressBarAttribute.cs | 37 ------------ .../ProgressBarAttribute.cs.meta | 11 ---- .../ResizableTextAreaAttribute.cs | 9 --- .../ResizableTextAreaAttribute.cs.meta | 11 ---- .../Core/DrawerAttributes/SceneAttribute.cs | 9 --- .../DrawerAttributes/SceneAttribute.cs.meta | 11 ---- .../ShowAssetPreviewAttribute.cs | 20 ------- .../ShowAssetPreviewAttribute.cs.meta | 11 ---- .../Core/DrawerAttributes/TagAttribute.cs | 9 --- .../DrawerAttributes/TagAttribute.cs.meta | 11 ---- .../Core/DrawerAttributes_SpecialCase.meta | 8 --- .../ButtonAttribute.cs | 33 ----------- .../ButtonAttribute.cs.meta | 11 ---- .../ReorderableListAttribute.cs | 9 --- .../ReorderableListAttribute.cs.meta | 11 ---- .../ShowNativePropertyAttribute.cs | 9 --- .../ShowNativePropertyAttribute.cs.meta | 11 ---- .../ShowNonSerializedFieldAttribute.cs | 9 --- .../ShowNonSerializedFieldAttribute.cs.meta | 11 ---- .../SpecialCaseDrawerAttribute.cs | 8 --- .../SpecialCaseDrawerAttribute.cs.meta | 11 ---- .../Core/INaughtyAttribute.cs | 8 --- .../Core/INaughtyAttribute.cs.meta | 11 ---- .../Core/MetaAttributes.meta | 8 --- .../Core/MetaAttributes/BoxGroupAttribute.cs | 15 ----- .../MetaAttributes/BoxGroupAttribute.cs.meta | 11 ---- .../Core/MetaAttributes/DisableIfAttribute.cs | 26 --------- .../MetaAttributes/DisableIfAttribute.cs.meta | 11 ---- .../Core/MetaAttributes/EnableIfAttribute.cs | 26 --------- .../MetaAttributes/EnableIfAttribute.cs.meta | 11 ---- .../MetaAttributes/EnableIfAttributeBase.cs | 39 ------------- .../EnableIfAttributeBase.cs.meta | 11 ---- .../Core/MetaAttributes/FoldoutAttribute.cs | 15 ----- .../MetaAttributes/FoldoutAttribute.cs.meta | 11 ---- .../Core/MetaAttributes/HideIfAttribute.cs | 26 --------- .../MetaAttributes/HideIfAttribute.cs.meta | 11 ---- .../Core/MetaAttributes/IGroupAttribute.cs | 8 --- .../MetaAttributes/IGroupAttribute.cs.meta | 11 ---- .../Core/MetaAttributes/LabelAttribute.cs | 15 ----- .../MetaAttributes/LabelAttribute.cs.meta | 11 ---- .../Core/MetaAttributes/MetaAttribute.cs | 8 --- .../Core/MetaAttributes/MetaAttribute.cs.meta | 11 ---- .../MetaAttributes/OnValueChangedAttribute.cs | 15 ----- .../OnValueChangedAttribute.cs.meta | 11 ---- .../Core/MetaAttributes/ReadOnlyAttribute.cs | 10 ---- .../MetaAttributes/ReadOnlyAttribute.cs.meta | 11 ---- .../Core/MetaAttributes/ShowIfAttribute.cs | 26 --------- .../MetaAttributes/ShowIfAttribute.cs.meta | 11 ---- .../MetaAttributes/ShowIfAttributeBase.cs | 39 ------------- .../ShowIfAttributeBase.cs.meta | 11 ---- .../Core/NaughtyAttributes.Core.asmdef | 12 ---- .../Core/NaughtyAttributes.Core.asmdef.meta | 7 --- Editor/NaughtyAttributes/Core/Utility.meta | 8 --- .../NaughtyAttributes/Core/Utility/EColor.cs | 56 ------------------ .../Core/Utility/EColor.cs.meta | 11 ---- .../Core/Utility/EConditionOperator.cs | 10 ---- .../Core/Utility/EConditionOperator.cs.meta | 11 ---- .../Core/ValidatorAttributes.meta | 8 --- .../ValidatorAttributes/MaxValueAttribute.cs | 20 ------- .../MaxValueAttribute.cs.meta | 11 ---- .../ValidatorAttributes/MinValueAttribute.cs | 20 ------- .../MinValueAttribute.cs.meta | 11 ---- .../ValidatorAttributes/RequiredAttribute.cs | 15 ----- .../RequiredAttribute.cs.meta | 11 ---- .../ValidateInputAttribute.cs | 17 ------ .../ValidateInputAttribute.cs.meta | 11 ---- .../ValidatorAttributes/ValidatorAttribute.cs | 8 --- .../ValidatorAttribute.cs.meta | 11 ---- Editor/Udexreal.HandDriver.Editor.asmdef | 7 +++ Runtime/HandDriver.cs | 16 ++++++ Runtime/Udexreal.HandDriver.Runtime.asmdef | 14 +++++ 97 files changed, 37 insertions(+), 1342 deletions(-) delete mode 100644 Editor/NaughtyAttributes/Core.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/AllowNestingAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/AllowNestingAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/AnimatorParamAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/AnimatorParamAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/CurveRangeAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/CurveRangeAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/DrawerAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/DrawerAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/DropdownAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/DropdownAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/EnumFlagsAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/EnumFlagsAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/Expandable.cs delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/Expandable.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/HorizontalLineAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/HorizontalLineAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/InfoBoxAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/InfoBoxAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/InputAxisAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/InputAxisAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/LayerAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/LayerAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/MinMaxSliderAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/MinMaxSliderAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/ProgressBarAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/ProgressBarAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/ResizableTextAreaAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/ResizableTextAreaAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/SceneAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/SceneAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/ShowAssetPreviewAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/ShowAssetPreviewAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/TagAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes/TagAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ButtonAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ButtonAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ReorderableListAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ReorderableListAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ShowNativePropertyAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ShowNativePropertyAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ShowNonSerializedFieldAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ShowNonSerializedFieldAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/SpecialCaseDrawerAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/SpecialCaseDrawerAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/INaughtyAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/INaughtyAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes.meta delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/BoxGroupAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/BoxGroupAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/DisableIfAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/DisableIfAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/EnableIfAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/EnableIfAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/EnableIfAttributeBase.cs delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/EnableIfAttributeBase.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/FoldoutAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/FoldoutAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/HideIfAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/HideIfAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/IGroupAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/IGroupAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/LabelAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/LabelAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/MetaAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/MetaAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/OnValueChangedAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/OnValueChangedAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/ReadOnlyAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/ReadOnlyAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/ShowIfAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/ShowIfAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/ShowIfAttributeBase.cs delete mode 100644 Editor/NaughtyAttributes/Core/MetaAttributes/ShowIfAttributeBase.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/NaughtyAttributes.Core.asmdef delete mode 100644 Editor/NaughtyAttributes/Core/NaughtyAttributes.Core.asmdef.meta delete mode 100644 Editor/NaughtyAttributes/Core/Utility.meta delete mode 100644 Editor/NaughtyAttributes/Core/Utility/EColor.cs delete mode 100644 Editor/NaughtyAttributes/Core/Utility/EColor.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/Utility/EConditionOperator.cs delete mode 100644 Editor/NaughtyAttributes/Core/Utility/EConditionOperator.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/ValidatorAttributes.meta delete mode 100644 Editor/NaughtyAttributes/Core/ValidatorAttributes/MaxValueAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/ValidatorAttributes/MaxValueAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/ValidatorAttributes/MinValueAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/ValidatorAttributes/MinValueAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/ValidatorAttributes/RequiredAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/ValidatorAttributes/RequiredAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/ValidatorAttributes/ValidateInputAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/ValidatorAttributes/ValidateInputAttribute.cs.meta delete mode 100644 Editor/NaughtyAttributes/Core/ValidatorAttributes/ValidatorAttribute.cs delete mode 100644 Editor/NaughtyAttributes/Core/ValidatorAttributes/ValidatorAttribute.cs.meta create mode 100644 Editor/Udexreal.HandDriver.Editor.asmdef create mode 100644 Runtime/Udexreal.HandDriver.Runtime.asmdef diff --git a/Editor/NaughtyAttributes/Core.meta b/Editor/NaughtyAttributes/Core.meta deleted file mode 100644 index b6e4a87..0000000 --- a/Editor/NaughtyAttributes/Core.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 2e2bd53b151a7f74a962791e3bc33651 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes.meta deleted file mode 100644 index 132a3c2..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c76425e719cd4424d868674bcfb233f2 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/AllowNestingAttribute.cs b/Editor/NaughtyAttributes/Core/DrawerAttributes/AllowNestingAttribute.cs deleted file mode 100644 index b7abb8c..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/AllowNestingAttribute.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class AllowNestingAttribute : DrawerAttribute - { - } -} diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/AllowNestingAttribute.cs.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes/AllowNestingAttribute.cs.meta deleted file mode 100644 index 343dfec..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/AllowNestingAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 95b49d3abe880c044adbe7faf6b7b4ec -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/AnimatorParamAttribute.cs b/Editor/NaughtyAttributes/Core/DrawerAttributes/AnimatorParamAttribute.cs deleted file mode 100644 index e8d9c2a..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/AnimatorParamAttribute.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using UnityEngine; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class AnimatorParamAttribute : DrawerAttribute - { - public string AnimatorName { get; private set; } - public AnimatorControllerParameterType? AnimatorParamType { get; private set; } - - public AnimatorParamAttribute(string animatorName) - { - AnimatorName = animatorName; - AnimatorParamType = null; - } - - public AnimatorParamAttribute(string animatorName, AnimatorControllerParameterType animatorParamType) - { - AnimatorName = animatorName; - AnimatorParamType = animatorParamType; - } - } -} diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/AnimatorParamAttribute.cs.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes/AnimatorParamAttribute.cs.meta deleted file mode 100644 index db61add..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/AnimatorParamAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7373332cb77b42744a415d6b4add445d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/CurveRangeAttribute.cs b/Editor/NaughtyAttributes/Core/DrawerAttributes/CurveRangeAttribute.cs deleted file mode 100644 index 3e48717..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/CurveRangeAttribute.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using UnityEngine; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class CurveRangeAttribute : DrawerAttribute - { - public Vector2 Min { get; private set; } - public Vector2 Max { get; private set; } - public EColor Color { get; private set; } - - public CurveRangeAttribute(Vector2 min, Vector2 max, EColor color = EColor.Clear) - { - Min = min; - Max = max; - Color = color; - } - - public CurveRangeAttribute(EColor color) - : this(Vector2.zero, Vector2.one, color) - { - } - - public CurveRangeAttribute(float minX, float minY, float maxX, float maxY, EColor color = EColor.Clear) - : this(new Vector2(minX, minY), new Vector2(maxX, maxY), color) - { - } - } -} diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/CurveRangeAttribute.cs.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes/CurveRangeAttribute.cs.meta deleted file mode 100644 index 93b60ab..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/CurveRangeAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: bbdf3fb8882c7514c9a01108122cda7e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/DrawerAttribute.cs b/Editor/NaughtyAttributes/Core/DrawerAttributes/DrawerAttribute.cs deleted file mode 100644 index 92e28d5..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/DrawerAttribute.cs +++ /dev/null @@ -1,11 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes -{ - /// - /// Base class for all drawer attributes - /// - public class DrawerAttribute : PropertyAttribute, INaughtyAttribute - { - } -} diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/DrawerAttribute.cs.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes/DrawerAttribute.cs.meta deleted file mode 100644 index aa54215..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/DrawerAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 9df37fdebccf65c4da5b0a14f6dad5f5 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/DropdownAttribute.cs b/Editor/NaughtyAttributes/Core/DrawerAttributes/DropdownAttribute.cs deleted file mode 100644 index 2bf4702..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/DropdownAttribute.cs +++ /dev/null @@ -1,57 +0,0 @@ -using System.Collections; -using System; -using System.Collections.Generic; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class DropdownAttribute : DrawerAttribute - { - public string ValuesName { get; private set; } - - public DropdownAttribute(string valuesName) - { - ValuesName = valuesName; - } - } - - public interface IDropdownList : IEnumerable> - { - } - - public class DropdownList : IDropdownList - { - private List> _values; - - public DropdownList() - { - _values = new List>(); - } - - public void Add(string displayName, T value) - { - _values.Add(new KeyValuePair(displayName, value)); - } - - public IEnumerator> GetEnumerator() - { - return _values.GetEnumerator(); - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetEnumerator(); - } - - public static explicit operator DropdownList(DropdownList target) - { - DropdownList result = new DropdownList(); - foreach (var kvp in target) - { - result.Add(kvp.Key, kvp.Value); - } - - return result; - } - } -} diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/DropdownAttribute.cs.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes/DropdownAttribute.cs.meta deleted file mode 100644 index b25926d..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/DropdownAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 2cb864a1092cec04f8a4dbb556e8ed31 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/EnumFlagsAttribute.cs b/Editor/NaughtyAttributes/Core/DrawerAttributes/EnumFlagsAttribute.cs deleted file mode 100644 index 81aab8e..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/EnumFlagsAttribute.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class EnumFlagsAttribute : DrawerAttribute - { - } -} diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/EnumFlagsAttribute.cs.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes/EnumFlagsAttribute.cs.meta deleted file mode 100644 index 25a52af..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/EnumFlagsAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: e8b31eb6d7299e54d89dcabc4cad0e6a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/Expandable.cs b/Editor/NaughtyAttributes/Core/DrawerAttributes/Expandable.cs deleted file mode 100644 index 83d522e..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/Expandable.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class ExpandableAttribute : DrawerAttribute - { - } -} diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/Expandable.cs.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes/Expandable.cs.meta deleted file mode 100644 index 8fa04e4..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/Expandable.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 60926d6ca7f9ced469e9248ff1192da6 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/HorizontalLineAttribute.cs b/Editor/NaughtyAttributes/Core/DrawerAttributes/HorizontalLineAttribute.cs deleted file mode 100644 index a3681bb..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/HorizontalLineAttribute.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = true, Inherited = true)] - public class HorizontalLineAttribute : DrawerAttribute - { - public const float DefaultHeight = 2.0f; - public const EColor DefaultColor = EColor.Gray; - - public float Height { get; private set; } - public EColor Color { get; private set; } - - public HorizontalLineAttribute(float height = DefaultHeight, EColor color = DefaultColor) - { - Height = height; - Color = color; - } - } -} diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/HorizontalLineAttribute.cs.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes/HorizontalLineAttribute.cs.meta deleted file mode 100644 index ecfd258..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/HorizontalLineAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 2fdd6f99acca2fd42a4f3162d585ce95 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/InfoBoxAttribute.cs b/Editor/NaughtyAttributes/Core/DrawerAttributes/InfoBoxAttribute.cs deleted file mode 100644 index cd66aab..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/InfoBoxAttribute.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - public enum EInfoBoxType - { - Normal, - Warning, - Error - } - - [AttributeUsage(AttributeTargets.Field, AllowMultiple = true, Inherited = true)] - public class InfoBoxAttribute : DrawerAttribute - { - public string Text { get; private set; } - public EInfoBoxType Type { get; private set; } - - public InfoBoxAttribute(string text, EInfoBoxType type = EInfoBoxType.Normal) - { - Text = text; - Type = type; - } - } -} diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/InfoBoxAttribute.cs.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes/InfoBoxAttribute.cs.meta deleted file mode 100644 index 8748a6e..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/InfoBoxAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: afd1d6323740c734893fa8397c53113b -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/InputAxisAttribute.cs b/Editor/NaughtyAttributes/Core/DrawerAttributes/InputAxisAttribute.cs deleted file mode 100644 index db74147..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/InputAxisAttribute.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class InputAxisAttribute : DrawerAttribute - { - } -} diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/InputAxisAttribute.cs.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes/InputAxisAttribute.cs.meta deleted file mode 100644 index da3b2c4..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/InputAxisAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 85033978c18810f46af271bbe94cf4aa -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/LayerAttribute.cs b/Editor/NaughtyAttributes/Core/DrawerAttributes/LayerAttribute.cs deleted file mode 100644 index 6f56200..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/LayerAttribute.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class LayerAttribute : DrawerAttribute - { - } -} \ No newline at end of file diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/LayerAttribute.cs.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes/LayerAttribute.cs.meta deleted file mode 100644 index 93d97f7..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/LayerAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 668d19ebe071176448d1af816a9a0ce0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/MinMaxSliderAttribute.cs b/Editor/NaughtyAttributes/Core/DrawerAttributes/MinMaxSliderAttribute.cs deleted file mode 100644 index 4f93921..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/MinMaxSliderAttribute.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class MinMaxSliderAttribute : DrawerAttribute - { - public float MinValue { get; private set; } - public float MaxValue { get; private set; } - - public MinMaxSliderAttribute(float minValue, float maxValue) - { - MinValue = minValue; - MaxValue = maxValue; - } - } -} diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/MinMaxSliderAttribute.cs.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes/MinMaxSliderAttribute.cs.meta deleted file mode 100644 index 03e5dcf..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/MinMaxSliderAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 4aaa73f574deaa54187cb54aae571b24 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/ProgressBarAttribute.cs b/Editor/NaughtyAttributes/Core/DrawerAttributes/ProgressBarAttribute.cs deleted file mode 100644 index 39344a0..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/ProgressBarAttribute.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class ProgressBarAttribute : DrawerAttribute - { - public string Name { get; private set; } - public float MaxValue { get; set; } - public string MaxValueName { get; private set; } - public EColor Color { get; private set; } - - public ProgressBarAttribute(string name, float maxValue, EColor color = EColor.Blue) - { - Name = name; - MaxValue = maxValue; - Color = color; - } - - public ProgressBarAttribute(string name, string maxValueName, EColor color = EColor.Blue) - { - Name = name; - MaxValueName = maxValueName; - Color = color; - } - - public ProgressBarAttribute(float maxValue, EColor color = EColor.Blue) - : this("", maxValue, color) - { - } - - public ProgressBarAttribute(string maxValueName, EColor color = EColor.Blue) - : this("", maxValueName, color) - { - } - } -} diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/ProgressBarAttribute.cs.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes/ProgressBarAttribute.cs.meta deleted file mode 100644 index 11029f0..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/ProgressBarAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: e19e4db6f4d08f849aa8ea8155cd2760 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/ResizableTextAreaAttribute.cs b/Editor/NaughtyAttributes/Core/DrawerAttributes/ResizableTextAreaAttribute.cs deleted file mode 100644 index 1c5eddc..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/ResizableTextAreaAttribute.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class ResizableTextAreaAttribute : DrawerAttribute - { - } -} diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/ResizableTextAreaAttribute.cs.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes/ResizableTextAreaAttribute.cs.meta deleted file mode 100644 index cc11d00..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/ResizableTextAreaAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 56d9a4b795ef4a94d86b94e55fb81240 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/SceneAttribute.cs b/Editor/NaughtyAttributes/Core/DrawerAttributes/SceneAttribute.cs deleted file mode 100644 index 215ba6c..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/SceneAttribute.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class SceneAttribute : DrawerAttribute - { - } -} \ No newline at end of file diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/SceneAttribute.cs.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes/SceneAttribute.cs.meta deleted file mode 100644 index f22649b..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/SceneAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: e054de18423364f4688b72a0f2a472b6 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/ShowAssetPreviewAttribute.cs b/Editor/NaughtyAttributes/Core/DrawerAttributes/ShowAssetPreviewAttribute.cs deleted file mode 100644 index 75654b0..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/ShowAssetPreviewAttribute.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class ShowAssetPreviewAttribute : DrawerAttribute - { - public const int DefaultWidth = 64; - public const int DefaultHeight = 64; - - public int Width { get; private set; } - public int Height { get; private set; } - - public ShowAssetPreviewAttribute(int width = DefaultWidth, int height = DefaultHeight) - { - Width = width; - Height = height; - } - } -} diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/ShowAssetPreviewAttribute.cs.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes/ShowAssetPreviewAttribute.cs.meta deleted file mode 100644 index 4893b92..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/ShowAssetPreviewAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 4b7dd9b44abc0054cb5cd68d74be2c1a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/TagAttribute.cs b/Editor/NaughtyAttributes/Core/DrawerAttributes/TagAttribute.cs deleted file mode 100644 index 200374e..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/TagAttribute.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class TagAttribute : DrawerAttribute - { - } -} diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes/TagAttribute.cs.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes/TagAttribute.cs.meta deleted file mode 100644 index 618033c..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes/TagAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 8903399bbd7c9d745a7b9188ab6c8320 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase.meta deleted file mode 100644 index 3096ac4..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 5cf879ed72221e740a7aa02ef9c366a7 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ButtonAttribute.cs b/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ButtonAttribute.cs deleted file mode 100644 index 1488d63..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ButtonAttribute.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - public enum EButtonEnableMode - { - /// - /// Button should be active always - /// - Always, - /// - /// Button should be active only in editor - /// - Editor, - /// - /// Button should be active only in playmode - /// - Playmode - } - - [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] - public class ButtonAttribute : SpecialCaseDrawerAttribute - { - public string Text { get; private set; } - public EButtonEnableMode SelectedEnableMode { get; private set; } - - public ButtonAttribute(string text = null, EButtonEnableMode enabledMode = EButtonEnableMode.Always) - { - this.Text = text; - this.SelectedEnableMode = enabledMode; - } - } -} diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ButtonAttribute.cs.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ButtonAttribute.cs.meta deleted file mode 100644 index cc7be5c..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ButtonAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: e8fe363a25ec5e24a9dd510bb0b4a0d4 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ReorderableListAttribute.cs b/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ReorderableListAttribute.cs deleted file mode 100644 index 43ae334..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ReorderableListAttribute.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class ReorderableListAttribute : SpecialCaseDrawerAttribute - { - } -} diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ReorderableListAttribute.cs.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ReorderableListAttribute.cs.meta deleted file mode 100644 index add3c4a..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ReorderableListAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6189b48f4055e6c47aa132632d898fa6 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ShowNativePropertyAttribute.cs b/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ShowNativePropertyAttribute.cs deleted file mode 100644 index e3b9376..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ShowNativePropertyAttribute.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)] - public class ShowNativePropertyAttribute : SpecialCaseDrawerAttribute - { - } -} diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ShowNativePropertyAttribute.cs.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ShowNativePropertyAttribute.cs.meta deleted file mode 100644 index 5aed9a2..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ShowNativePropertyAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a8e9b7b71c94a1f459336a24cfe04b1b -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ShowNonSerializedFieldAttribute.cs b/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ShowNonSerializedFieldAttribute.cs deleted file mode 100644 index 9bf0609..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ShowNonSerializedFieldAttribute.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class ShowNonSerializedFieldAttribute : SpecialCaseDrawerAttribute - { - } -} diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ShowNonSerializedFieldAttribute.cs.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ShowNonSerializedFieldAttribute.cs.meta deleted file mode 100644 index 84d5624..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/ShowNonSerializedFieldAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 8ea09f60df536734184a8920ff8bda6f -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/SpecialCaseDrawerAttribute.cs b/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/SpecialCaseDrawerAttribute.cs deleted file mode 100644 index e71be81..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/SpecialCaseDrawerAttribute.cs +++ /dev/null @@ -1,8 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - public class SpecialCaseDrawerAttribute : Attribute, INaughtyAttribute - { - } -} diff --git a/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/SpecialCaseDrawerAttribute.cs.meta b/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/SpecialCaseDrawerAttribute.cs.meta deleted file mode 100644 index 3b4bd25..0000000 --- a/Editor/NaughtyAttributes/Core/DrawerAttributes_SpecialCase/SpecialCaseDrawerAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 95a59093f8ed1af48a8be75fa3050a3c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/INaughtyAttribute.cs b/Editor/NaughtyAttributes/Core/INaughtyAttribute.cs deleted file mode 100644 index b67ba03..0000000 --- a/Editor/NaughtyAttributes/Core/INaughtyAttribute.cs +++ /dev/null @@ -1,8 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - public interface INaughtyAttribute - { - } -} diff --git a/Editor/NaughtyAttributes/Core/INaughtyAttribute.cs.meta b/Editor/NaughtyAttributes/Core/INaughtyAttribute.cs.meta deleted file mode 100644 index e2dd9d9..0000000 --- a/Editor/NaughtyAttributes/Core/INaughtyAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: edda855906d15e541b46efd812fd70f3 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes.meta b/Editor/NaughtyAttributes/Core/MetaAttributes.meta deleted file mode 100644 index 547f24d..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 64c95d02a2004854585e8d923d6680d0 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/BoxGroupAttribute.cs b/Editor/NaughtyAttributes/Core/MetaAttributes/BoxGroupAttribute.cs deleted file mode 100644 index 23d7e00..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/BoxGroupAttribute.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class BoxGroupAttribute : MetaAttribute, IGroupAttribute - { - public string Name { get; private set; } - - public BoxGroupAttribute(string name = "") - { - Name = name; - } - } -} diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/BoxGroupAttribute.cs.meta b/Editor/NaughtyAttributes/Core/MetaAttributes/BoxGroupAttribute.cs.meta deleted file mode 100644 index d68d8de..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/BoxGroupAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 07da8af1e3be52c4789678bf4138ae11 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/DisableIfAttribute.cs b/Editor/NaughtyAttributes/Core/MetaAttributes/DisableIfAttribute.cs deleted file mode 100644 index 68c92b4..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/DisableIfAttribute.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field | AttributeTargets.Method, AllowMultiple = false, Inherited = true)] - public class DisableIfAttribute : EnableIfAttributeBase - { - public DisableIfAttribute(string condition) - : base(condition) - { - Inverted = true; - } - - public DisableIfAttribute(EConditionOperator conditionOperator, params string[] conditions) - : base(conditionOperator, conditions) - { - Inverted = true; - } - - public DisableIfAttribute(string enumName, object enumValue) - : base(enumName, enumValue as Enum) - { - Inverted = true; - } - } -} diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/DisableIfAttribute.cs.meta b/Editor/NaughtyAttributes/Core/MetaAttributes/DisableIfAttribute.cs.meta deleted file mode 100644 index b91dc52..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/DisableIfAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 52a0d5c249ac8fd42a4fb4d61bc2f797 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/EnableIfAttribute.cs b/Editor/NaughtyAttributes/Core/MetaAttributes/EnableIfAttribute.cs deleted file mode 100644 index e22afdf..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/EnableIfAttribute.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field | AttributeTargets.Method, AllowMultiple = false, Inherited = true)] - public class EnableIfAttribute : EnableIfAttributeBase - { - public EnableIfAttribute(string condition) - : base(condition) - { - Inverted = false; - } - - public EnableIfAttribute(EConditionOperator conditionOperator, params string[] conditions) - : base(conditionOperator, conditions) - { - Inverted = false; - } - - public EnableIfAttribute(string enumName, object enumValue) - : base(enumName, enumValue as Enum) - { - Inverted = false; - } - } -} diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/EnableIfAttribute.cs.meta b/Editor/NaughtyAttributes/Core/MetaAttributes/EnableIfAttribute.cs.meta deleted file mode 100644 index f3a696c..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/EnableIfAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a616ae826c8ebae45a89d6a8cb68a843 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/EnableIfAttributeBase.cs b/Editor/NaughtyAttributes/Core/MetaAttributes/EnableIfAttributeBase.cs deleted file mode 100644 index 3e6d667..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/EnableIfAttributeBase.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - public abstract class EnableIfAttributeBase : MetaAttribute - { - public string[] Conditions { get; private set; } - public EConditionOperator ConditionOperator { get; private set; } - public bool Inverted { get; protected set; } - - /// - /// If this not null, [0] is name of an enum variable. - /// - public Enum EnumValue { get; private set; } - - public EnableIfAttributeBase(string condition) - { - ConditionOperator = EConditionOperator.And; - Conditions = new string[1] { condition }; - } - - public EnableIfAttributeBase(EConditionOperator conditionOperator, params string[] conditions) - { - ConditionOperator = conditionOperator; - Conditions = conditions; - } - - public EnableIfAttributeBase(string enumName, Enum enumValue) - : this(enumName) - { - if (enumValue == null) - { - throw new ArgumentNullException(nameof(enumValue), "This parameter must be an enum value."); - } - - EnumValue = enumValue; - } - } -} diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/EnableIfAttributeBase.cs.meta b/Editor/NaughtyAttributes/Core/MetaAttributes/EnableIfAttributeBase.cs.meta deleted file mode 100644 index 45fd5eb..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/EnableIfAttributeBase.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 8ba6385cd022e164b89ead1937173ddc -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/FoldoutAttribute.cs b/Editor/NaughtyAttributes/Core/MetaAttributes/FoldoutAttribute.cs deleted file mode 100644 index cf20f17..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/FoldoutAttribute.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class FoldoutAttribute : MetaAttribute, IGroupAttribute - { - public string Name { get; private set; } - - public FoldoutAttribute(string name) - { - Name = name; - } - } -} diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/FoldoutAttribute.cs.meta b/Editor/NaughtyAttributes/Core/MetaAttributes/FoldoutAttribute.cs.meta deleted file mode 100644 index e39736b..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/FoldoutAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 95f184555d5079243b2d25b35a641a74 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/HideIfAttribute.cs b/Editor/NaughtyAttributes/Core/MetaAttributes/HideIfAttribute.cs deleted file mode 100644 index 0f8533e..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/HideIfAttribute.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field | AttributeTargets.Method, AllowMultiple = false, Inherited = true)] - public class HideIfAttribute : ShowIfAttributeBase - { - public HideIfAttribute(string condition) - : base(condition) - { - Inverted = true; - } - - public HideIfAttribute(EConditionOperator conditionOperator, params string[] conditions) - : base(conditionOperator, conditions) - { - Inverted = true; - } - - public HideIfAttribute(string enumName, object enumValue) - : base(enumName, enumValue as Enum) - { - Inverted = true; - } - } -} diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/HideIfAttribute.cs.meta b/Editor/NaughtyAttributes/Core/MetaAttributes/HideIfAttribute.cs.meta deleted file mode 100644 index 888cf89..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/HideIfAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 9ab2d0fcfb13a214ea6ef7629c96a761 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/IGroupAttribute.cs b/Editor/NaughtyAttributes/Core/MetaAttributes/IGroupAttribute.cs deleted file mode 100644 index 7c1ea76..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/IGroupAttribute.cs +++ /dev/null @@ -1,8 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes -{ - public interface IGroupAttribute - { - } -} diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/IGroupAttribute.cs.meta b/Editor/NaughtyAttributes/Core/MetaAttributes/IGroupAttribute.cs.meta deleted file mode 100644 index 47db85d..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/IGroupAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7c437b9ac50575347a7b12520f37f9a2 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/LabelAttribute.cs b/Editor/NaughtyAttributes/Core/MetaAttributes/LabelAttribute.cs deleted file mode 100644 index 45e5d19..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/LabelAttribute.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class LabelAttribute : MetaAttribute - { - public string Label { get; private set; } - - public LabelAttribute(string label) - { - Label = label; - } - } -} diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/LabelAttribute.cs.meta b/Editor/NaughtyAttributes/Core/MetaAttributes/LabelAttribute.cs.meta deleted file mode 100644 index 9488d54..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/LabelAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 79e0e0c0a7c25ea4fbe8eecaa4d559a0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/MetaAttribute.cs b/Editor/NaughtyAttributes/Core/MetaAttributes/MetaAttribute.cs deleted file mode 100644 index b63026a..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/MetaAttribute.cs +++ /dev/null @@ -1,8 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - public class MetaAttribute : Attribute, INaughtyAttribute - { - } -} diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/MetaAttribute.cs.meta b/Editor/NaughtyAttributes/Core/MetaAttributes/MetaAttribute.cs.meta deleted file mode 100644 index a7be132..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/MetaAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a482b4e0fbf0f4547a5d522182a68d24 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/OnValueChangedAttribute.cs b/Editor/NaughtyAttributes/Core/MetaAttributes/OnValueChangedAttribute.cs deleted file mode 100644 index fcbb187..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/OnValueChangedAttribute.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = true, Inherited = true)] - public class OnValueChangedAttribute : MetaAttribute - { - public string CallbackName { get; private set; } - - public OnValueChangedAttribute(string callbackName) - { - CallbackName = callbackName; - } - } -} diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/OnValueChangedAttribute.cs.meta b/Editor/NaughtyAttributes/Core/MetaAttributes/OnValueChangedAttribute.cs.meta deleted file mode 100644 index 4a92c4b..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/OnValueChangedAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: e16a27c5576022b4bbe997c7db9051f0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/ReadOnlyAttribute.cs b/Editor/NaughtyAttributes/Core/MetaAttributes/ReadOnlyAttribute.cs deleted file mode 100644 index 78a4705..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/ReadOnlyAttribute.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class ReadOnlyAttribute : MetaAttribute - { - - } -} diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/ReadOnlyAttribute.cs.meta b/Editor/NaughtyAttributes/Core/MetaAttributes/ReadOnlyAttribute.cs.meta deleted file mode 100644 index 24ec846..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/ReadOnlyAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: e57264747ba93b94fbff12733de29499 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/ShowIfAttribute.cs b/Editor/NaughtyAttributes/Core/MetaAttributes/ShowIfAttribute.cs deleted file mode 100644 index 3d721da..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/ShowIfAttribute.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field | AttributeTargets.Method, AllowMultiple = false, Inherited = true)] - public class ShowIfAttribute : ShowIfAttributeBase - { - public ShowIfAttribute(string condition) - : base(condition) - { - Inverted = false; - } - - public ShowIfAttribute(EConditionOperator conditionOperator, params string[] conditions) - : base(conditionOperator, conditions) - { - Inverted = false; - } - - public ShowIfAttribute(string enumName, object enumValue) - : base(enumName, enumValue as Enum) - { - Inverted = false; - } - } -} diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/ShowIfAttribute.cs.meta b/Editor/NaughtyAttributes/Core/MetaAttributes/ShowIfAttribute.cs.meta deleted file mode 100644 index 4556ac2..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/ShowIfAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 1ada427cfd2c9b04989d6d18dea27985 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/ShowIfAttributeBase.cs b/Editor/NaughtyAttributes/Core/MetaAttributes/ShowIfAttributeBase.cs deleted file mode 100644 index 8f76ed4..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/ShowIfAttributeBase.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - public class ShowIfAttributeBase : MetaAttribute - { - public string[] Conditions { get; private set; } - public EConditionOperator ConditionOperator { get; private set; } - public bool Inverted { get; protected set; } - - /// - /// If this not null, [0] is name of an enum variable. - /// - public Enum EnumValue { get; private set; } - - public ShowIfAttributeBase(string condition) - { - ConditionOperator = EConditionOperator.And; - Conditions = new string[1] { condition }; - } - - public ShowIfAttributeBase(EConditionOperator conditionOperator, params string[] conditions) - { - ConditionOperator = conditionOperator; - Conditions = conditions; - } - - public ShowIfAttributeBase(string enumName, Enum enumValue) - : this(enumName) - { - if (enumValue == null) - { - throw new ArgumentNullException(nameof(enumValue), "This parameter must be an enum value."); - } - - EnumValue = enumValue; - } - } -} diff --git a/Editor/NaughtyAttributes/Core/MetaAttributes/ShowIfAttributeBase.cs.meta b/Editor/NaughtyAttributes/Core/MetaAttributes/ShowIfAttributeBase.cs.meta deleted file mode 100644 index e82a9ad..0000000 --- a/Editor/NaughtyAttributes/Core/MetaAttributes/ShowIfAttributeBase.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 0532b1c4d8a9ccf4b9f98f0bbe4a6747 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/NaughtyAttributes.Core.asmdef b/Editor/NaughtyAttributes/Core/NaughtyAttributes.Core.asmdef deleted file mode 100644 index 569e4e6..0000000 --- a/Editor/NaughtyAttributes/Core/NaughtyAttributes.Core.asmdef +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "NaughtyAttributes.Core", - "references": [], - "includePlatforms": [], - "excludePlatforms": [], - "allowUnsafeCode": false, - "overrideReferences": false, - "precompiledReferences": [], - "autoReferenced": true, - "defineConstraints": [], - "versionDefines": [] -} \ No newline at end of file diff --git a/Editor/NaughtyAttributes/Core/NaughtyAttributes.Core.asmdef.meta b/Editor/NaughtyAttributes/Core/NaughtyAttributes.Core.asmdef.meta deleted file mode 100644 index 731749c..0000000 --- a/Editor/NaughtyAttributes/Core/NaughtyAttributes.Core.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 776d03a35f1b52c4a9aed9f56d7b4229 -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/Utility.meta b/Editor/NaughtyAttributes/Core/Utility.meta deleted file mode 100644 index 80be476..0000000 --- a/Editor/NaughtyAttributes/Core/Utility.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 6d61a3a977073c740ae13a3683ed22a1 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/Utility/EColor.cs b/Editor/NaughtyAttributes/Core/Utility/EColor.cs deleted file mode 100644 index f938b93..0000000 --- a/Editor/NaughtyAttributes/Core/Utility/EColor.cs +++ /dev/null @@ -1,56 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes -{ - public enum EColor - { - Clear, - White, - Black, - Gray, - Red, - Pink, - Orange, - Yellow, - Green, - Blue, - Indigo, - Violet - } - - public static class EColorExtensions - { - public static Color GetColor(this EColor color) - { - switch (color) - { - case EColor.Clear: - return new Color32(0, 0, 0, 0); - case EColor.White: - return new Color32(255, 255, 255, 255); - case EColor.Black: - return new Color32(0, 0, 0, 255); - case EColor.Gray: - return new Color32(128, 128, 128, 255); - case EColor.Red: - return new Color32(255, 0, 63, 255); - case EColor.Pink: - return new Color32(255, 152, 203, 255); - case EColor.Orange: - return new Color32(255, 128, 0, 255); - case EColor.Yellow: - return new Color32(255, 211, 0, 255); - case EColor.Green: - return new Color32(98, 200, 79, 255); - case EColor.Blue: - return new Color32(0, 135, 189, 255); - case EColor.Indigo: - return new Color32(75, 0, 130, 255); - case EColor.Violet: - return new Color32(128, 0, 255, 255); - default: - return new Color32(0, 0, 0, 255); - } - } - } -} diff --git a/Editor/NaughtyAttributes/Core/Utility/EColor.cs.meta b/Editor/NaughtyAttributes/Core/Utility/EColor.cs.meta deleted file mode 100644 index 0f32c5e..0000000 --- a/Editor/NaughtyAttributes/Core/Utility/EColor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 059f8674a8065924ea9c678298b5cd63 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/Utility/EConditionOperator.cs b/Editor/NaughtyAttributes/Core/Utility/EConditionOperator.cs deleted file mode 100644 index 9ff8c0a..0000000 --- a/Editor/NaughtyAttributes/Core/Utility/EConditionOperator.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - public enum EConditionOperator - { - And, - Or - } -} diff --git a/Editor/NaughtyAttributes/Core/Utility/EConditionOperator.cs.meta b/Editor/NaughtyAttributes/Core/Utility/EConditionOperator.cs.meta deleted file mode 100644 index 60e3264..0000000 --- a/Editor/NaughtyAttributes/Core/Utility/EConditionOperator.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 3c227b6c19fc67b46ad294d95818f85a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/ValidatorAttributes.meta b/Editor/NaughtyAttributes/Core/ValidatorAttributes.meta deleted file mode 100644 index d5aba48..0000000 --- a/Editor/NaughtyAttributes/Core/ValidatorAttributes.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: bf91d63e37bed3e4cbf75d576fc03a21 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/ValidatorAttributes/MaxValueAttribute.cs b/Editor/NaughtyAttributes/Core/ValidatorAttributes/MaxValueAttribute.cs deleted file mode 100644 index 62c1dc3..0000000 --- a/Editor/NaughtyAttributes/Core/ValidatorAttributes/MaxValueAttribute.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class MaxValueAttribute : ValidatorAttribute - { - public float MaxValue { get; private set; } - - public MaxValueAttribute(float maxValue) - { - MaxValue = maxValue; - } - - public MaxValueAttribute(int maxValue) - { - MaxValue = maxValue; - } - } -} diff --git a/Editor/NaughtyAttributes/Core/ValidatorAttributes/MaxValueAttribute.cs.meta b/Editor/NaughtyAttributes/Core/ValidatorAttributes/MaxValueAttribute.cs.meta deleted file mode 100644 index b02fdbc..0000000 --- a/Editor/NaughtyAttributes/Core/ValidatorAttributes/MaxValueAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a748250af5ccfd7499cfb444aafb8a03 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/ValidatorAttributes/MinValueAttribute.cs b/Editor/NaughtyAttributes/Core/ValidatorAttributes/MinValueAttribute.cs deleted file mode 100644 index 507c034..0000000 --- a/Editor/NaughtyAttributes/Core/ValidatorAttributes/MinValueAttribute.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class MinValueAttribute : ValidatorAttribute - { - public float MinValue { get; private set; } - - public MinValueAttribute(float minValue) - { - MinValue = minValue; - } - - public MinValueAttribute(int minValue) - { - MinValue = minValue; - } - } -} diff --git a/Editor/NaughtyAttributes/Core/ValidatorAttributes/MinValueAttribute.cs.meta b/Editor/NaughtyAttributes/Core/ValidatorAttributes/MinValueAttribute.cs.meta deleted file mode 100644 index 9d90191..0000000 --- a/Editor/NaughtyAttributes/Core/ValidatorAttributes/MinValueAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 40133bac7c8d42b4d837138430a503e0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/ValidatorAttributes/RequiredAttribute.cs b/Editor/NaughtyAttributes/Core/ValidatorAttributes/RequiredAttribute.cs deleted file mode 100644 index b1161a5..0000000 --- a/Editor/NaughtyAttributes/Core/ValidatorAttributes/RequiredAttribute.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class RequiredAttribute : ValidatorAttribute - { - public string Message { get; private set; } - - public RequiredAttribute(string message = null) - { - Message = message; - } - } -} diff --git a/Editor/NaughtyAttributes/Core/ValidatorAttributes/RequiredAttribute.cs.meta b/Editor/NaughtyAttributes/Core/ValidatorAttributes/RequiredAttribute.cs.meta deleted file mode 100644 index 7f87cfc..0000000 --- a/Editor/NaughtyAttributes/Core/ValidatorAttributes/RequiredAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b0cdf49d1687849458b1a8d4786553d4 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/ValidatorAttributes/ValidateInputAttribute.cs b/Editor/NaughtyAttributes/Core/ValidatorAttributes/ValidateInputAttribute.cs deleted file mode 100644 index 6a353c2..0000000 --- a/Editor/NaughtyAttributes/Core/ValidatorAttributes/ValidateInputAttribute.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class ValidateInputAttribute : ValidatorAttribute - { - public string CallbackName { get; private set; } - public string Message { get; private set; } - - public ValidateInputAttribute(string callbackName, string message = null) - { - CallbackName = callbackName; - Message = message; - } - } -} diff --git a/Editor/NaughtyAttributes/Core/ValidatorAttributes/ValidateInputAttribute.cs.meta b/Editor/NaughtyAttributes/Core/ValidatorAttributes/ValidateInputAttribute.cs.meta deleted file mode 100644 index 0addd1a..0000000 --- a/Editor/NaughtyAttributes/Core/ValidatorAttributes/ValidateInputAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6c4171d68fb5bc0448d3ac298973e82c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/NaughtyAttributes/Core/ValidatorAttributes/ValidatorAttribute.cs b/Editor/NaughtyAttributes/Core/ValidatorAttributes/ValidatorAttribute.cs deleted file mode 100644 index 3b1201d..0000000 --- a/Editor/NaughtyAttributes/Core/ValidatorAttributes/ValidatorAttribute.cs +++ /dev/null @@ -1,8 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - public class ValidatorAttribute : Attribute, INaughtyAttribute - { - } -} diff --git a/Editor/NaughtyAttributes/Core/ValidatorAttributes/ValidatorAttribute.cs.meta b/Editor/NaughtyAttributes/Core/ValidatorAttributes/ValidatorAttribute.cs.meta deleted file mode 100644 index f5daea8..0000000 --- a/Editor/NaughtyAttributes/Core/ValidatorAttributes/ValidatorAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 0f3c43bed2dbc5249b6c6ec7859c2020 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Editor/Udexreal.HandDriver.Editor.asmdef b/Editor/Udexreal.HandDriver.Editor.asmdef new file mode 100644 index 0000000..af21d55 --- /dev/null +++ b/Editor/Udexreal.HandDriver.Editor.asmdef @@ -0,0 +1,7 @@ +{ + "name": "HandDriverUPM.Editor", + "references": [ + "HandDriverUPM.Runtime" + ], + "includePlatforms": [ "Editor" ] +} diff --git a/Runtime/HandDriver.cs b/Runtime/HandDriver.cs index c257070..cf3de29 100644 --- a/Runtime/HandDriver.cs +++ b/Runtime/HandDriver.cs @@ -1,4 +1,6 @@ +#if UNITY_EDITOR using NaughtyAttributes; +#endif using System.Collections.Generic; using TouchSocket.Core; using UnityEngine; @@ -104,11 +106,17 @@ public class HandDriver : MonoBehaviour public string SendBackIP; public VibrationData vibrationData; +#if UNITY_EDITOR [BoxGroup("Vibrator 1"), Min(0), Label("Million Second")] +#endif public int Duration1 = 20; +#if UNITY_EDITOR [BoxGroup("Vibrator 1"), Range(4, 10)] +#endif public int Amplitude1 = 4; +#if UNITY_EDITOR [Button] +#endif public void Vibrator_1Active() { if (Network == null) return; @@ -134,11 +142,17 @@ public class HandDriver : MonoBehaviour Network.SendVibrationMsg(CharacterName, SendBackIP, vibrationData); } +#if UNITY_EDITOR [BoxGroup("Vibrator 2"), Min(0), Label("Million Second")] +#endif public int Duration2 = 20; +#if UNITY_EDITOR [BoxGroup("Vibrator 2"), Range(4, 10)] +#endif public int Amplitude2 = 4; +#if UNITY_EDITOR [Button] +#endif public void Vibrator_2Active() { if (Network == null) return; @@ -163,7 +177,9 @@ public class HandDriver : MonoBehaviour } Network.SendVibrationMsg(CharacterName, SendBackIP, vibrationData); } +#if UNITY_EDITOR [Button] +#endif public void BothActiveWithVibrator_1Parameters() { if (Network == null) return; diff --git a/Runtime/Udexreal.HandDriver.Runtime.asmdef b/Runtime/Udexreal.HandDriver.Runtime.asmdef new file mode 100644 index 0000000..cb11141 --- /dev/null +++ b/Runtime/Udexreal.HandDriver.Runtime.asmdef @@ -0,0 +1,14 @@ +{ + "name": "HandDriver.Runtime", + "rootNamespace": "Udexreal.HandDriver", + "references": [], + "includePlatforms": [], + "excludePlatforms": [ "Editor" ], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +}