From 82bf1440746df71caf45b785551056231a7f51a8 Mon Sep 17 00:00:00 2001 From: Govorunb Date: Mon, 6 Nov 2023 01:37:27 +1100 Subject: [PATCH] take NaughtyAttributes out to grandpa's farm where it can live a happy life --- .../NaughtyAttributesInterop.cs | 25 - .../Scripts/Patches/Editor.Patches.asmdef | 3 +- .../Editor/Scripts/Patches/NaughtyPatches.cs | 80 - .../Scripts/Patches/NaughtyPatches.cs.meta | 11 - .../Scripts/ECCLibrary/ECCLibrary.asmdef | 3 +- .../SCHIZO/Helpers/BetterDropdownList.cs | 21 - .../SCHIZO/Helpers/BetterDropdownList.cs.meta | 11 - Unity/Assets/Scripts/SCHIZO/SCHIZO.asmdef | 1 - Unity/Packages/NaughtyAttributes/LICENSE | 21 - Unity/Packages/NaughtyAttributes/LICENSE.meta | 7 - Unity/Packages/NaughtyAttributes/README.html | 1648 ----------- .../NaughtyAttributes/README.html.meta | 7 - Unity/Packages/NaughtyAttributes/Samples.meta | 8 - .../NaughtyAttributes/Samples/DemoScene.meta | 10 - .../Samples/DemoScene/DemoScene.unity | 2415 ----------------- .../Samples/DemoScene/DemoScene.unity.meta | 9 - .../DemoScene/DemoSceneSettings.lighting | 63 - .../DemoScene/DemoSceneSettings.lighting.meta | 8 - .../Samples/DemoScene/TestAssets.meta | 10 - .../Samples/DemoScene/TestAssets/Cube.prefab | 93 - .../DemoScene/TestAssets/Cube.prefab.meta | 10 - .../DemoScene/TestAssets/DummyAnimation.anim | 169 -- .../TestAssets/DummyAnimation.anim.meta | 8 - .../DummyAnimatorController.controller | 120 - .../DummyAnimatorController.controller.meta | 8 - .../TestAssets/NaughtyScriptableObject.asset | 17 - .../NaughtyScriptableObject.asset.meta | 10 - .../TestAssets/TestScriptableObjectA.asset | 17 - .../TestScriptableObjectA.asset.meta | 8 - .../TestAssets/TestScriptableObjectB.asset | 15 - .../TestScriptableObjectB.asset.meta | 8 - .../DemoScene/TestAssets/icon-github.png | Bin 29968 -> 0 bytes .../DemoScene/TestAssets/icon-github.png.meta | 127 - Unity/Packages/NaughtyAttributes/Scripts.meta | 10 - .../NaughtyAttributes/Scripts/Core.meta | 10 - .../Scripts/Core/DrawerAttributes.meta | 8 - .../DrawerAttributes/AllowNestingAttribute.cs | 10 - .../AllowNestingAttribute.cs.meta | 11 - .../AnimatorParamAttribute.cs | 24 - .../AnimatorParamAttribute.cs.meta | 11 - .../DrawerAttributes/CurveRangeAttribute.cs | 30 - .../CurveRangeAttribute.cs.meta | 11 - .../Core/DrawerAttributes/DrawerAttribute.cs | 13 - .../DrawerAttributes/DrawerAttribute.cs.meta | 11 - .../DrawerAttributes/DropdownAttribute.cs | 60 - .../DropdownAttribute.cs.meta | 11 - .../DrawerAttributes/EnumFlagsAttribute.cs | 10 - .../EnumFlagsAttribute.cs.meta | 11 - .../Core/DrawerAttributes/Expandable.cs | 10 - .../Core/DrawerAttributes/Expandable.cs.meta | 11 - .../HorizontalLineAttribute.cs | 20 - .../HorizontalLineAttribute.cs.meta | 11 - .../Core/DrawerAttributes/InfoBoxAttribute.cs | 25 - .../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 | 18 - .../MinMaxSliderAttribute.cs.meta | 11 - .../DrawerAttributes/ProgressBarAttribute.cs | 37 - .../ProgressBarAttribute.cs.meta | 11 - .../ResizableTextAreaAttribute.cs | 10 - .../ResizableTextAreaAttribute.cs.meta | 11 - .../Core/DrawerAttributes/SceneAttribute.cs | 9 - .../DrawerAttributes/SceneAttribute.cs.meta | 11 - .../ShowAssetPreviewAttribute.cs | 20 - .../ShowAssetPreviewAttribute.cs.meta | 11 - .../DrawerAttributes/SortingLayerAttribute.cs | 9 - .../SortingLayerAttribute.cs.meta | 11 - .../Core/DrawerAttributes/TagAttribute.cs | 9 - .../DrawerAttributes/TagAttribute.cs.meta | 11 - .../Core/DrawerAttributes_SpecialCase.meta | 8 - .../ButtonAttribute.cs | 34 - .../ButtonAttribute.cs.meta | 11 - .../ReorderableListAttribute.cs | 10 - .../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 - .../Scripts/Core/INaughtyAttribute.cs | 8 - .../Scripts/Core/INaughtyAttribute.cs.meta | 11 - .../Scripts/Core/MetaAttributes.meta | 8 - .../Core/MetaAttributes/BoxGroupAttribute.cs | 16 - .../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 | 16 - .../MetaAttributes/FoldoutAttribute.cs.meta | 11 - .../Core/MetaAttributes/HideIfAttribute.cs | 27 - .../MetaAttributes/HideIfAttribute.cs.meta | 11 - .../Core/MetaAttributes/IGroupAttribute.cs | 8 - .../MetaAttributes/IGroupAttribute.cs.meta | 11 - .../Core/MetaAttributes/LabelAttribute.cs | 16 - .../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 | 11 - .../MetaAttributes/ReadOnlyAttribute.cs.meta | 11 - .../Core/MetaAttributes/ShowIfAttribute.cs | 27 - .../MetaAttributes/ShowIfAttribute.cs.meta | 11 - .../MetaAttributes/ShowIfAttributeBase.cs | 39 - .../ShowIfAttributeBase.cs.meta | 11 - .../Core/NaughtyAttributes.Core.asmdef | 12 - .../Core/NaughtyAttributes.Core.asmdef.meta | 7 - .../Scripts/Core/Utility.meta | 8 - .../Scripts/Core/Utility/EColor.cs | 56 - .../Scripts/Core/Utility/EColor.cs.meta | 11 - .../Core/Utility/EConditionOperator.cs | 11 - .../Core/Utility/EConditionOperator.cs.meta | 11 - .../Scripts/Core/ValidatorAttributes.meta | 8 - .../ValidatorAttributes/MaxValueAttribute.cs | 20 - .../MaxValueAttribute.cs.meta | 11 - .../ValidatorAttributes/MinValueAttribute.cs | 20 - .../MinValueAttribute.cs.meta | 11 - .../ValidatorAttributes/RequiredAttribute.cs | 16 - .../RequiredAttribute.cs.meta | 11 - .../ValidateInputAttribute.cs | 18 - .../ValidateInputAttribute.cs.meta | 11 - .../ValidatorAttributes/ValidatorAttribute.cs | 9 - .../ValidatorAttribute.cs.meta | 11 - .../NaughtyAttributes/Scripts/Editor.meta | 10 - .../Scripts/Editor/DecoratorDrawers.meta | 8 - .../HorizontalLineDecoratorDrawer.cs | 23 - .../HorizontalLineDecoratorDrawer.cs.meta | 11 - .../InfoBoxDecoratorDrawer.cs | 59 - .../InfoBoxDecoratorDrawer.cs.meta | 11 - .../Editor/NaughtyAttributes.Editor.asmdef | 16 - .../NaughtyAttributes.Editor.asmdef.meta | 7 - .../Scripts/Editor/NaughtyInspector.cs | 221 -- .../Scripts/Editor/NaughtyInspector.cs.meta | 11 - .../Scripts/Editor/PropertyDrawers.meta | 8 - .../AllowNestingPropertyDrawer.cs | 16 - .../AllowNestingPropertyDrawer.cs.meta | 11 - .../AnimatorParamPropertyDrawer.cs | 173 -- .../AnimatorParamPropertyDrawer.cs.meta | 11 - .../CurveRangePropertyDrawer.cs | 47 - .../CurveRangePropertyDrawer.cs.meta | 11 - .../PropertyDrawers/DropdownPropertyDrawer.cs | 177 -- .../DropdownPropertyDrawer.cs.meta | 11 - .../EnumFlagsPropertyDrawer.cs | 38 - .../EnumFlagsPropertyDrawer.cs.meta | 11 - .../ExpandablePropertyDrawer.cs | 195 -- .../ExpandablePropertyDrawer.cs.meta | 11 - .../InputAxisPropertyDrawer.cs | 77 - .../InputAxisPropertyDrawer.cs.meta | 11 - .../PropertyDrawers/LayerPropertyDrawer.cs | 88 - .../LayerPropertyDrawer.cs.meta | 11 - .../MinMaxSliderPropertyDrawer.cs | 108 - .../MinMaxSliderPropertyDrawer.cs.meta | 11 - .../ProgressBarPropertyDrawer.cs | 154 -- .../ProgressBarPropertyDrawer.cs.meta | 11 - .../PropertyDrawers/PropertyDrawerBase.cs | 94 - .../PropertyDrawerBase.cs.meta | 11 - .../ResizableTextAreaPropertyDrawer.cs | 80 - .../ResizableTextAreaPropertyDrawer.cs.meta | 11 - .../PropertyDrawers/ScenePropertyDrawer.cs | 99 - .../ScenePropertyDrawer.cs.meta | 11 - .../ShowAssetPreviewPropertyDrawer.cs | 110 - .../ShowAssetPreviewPropertyDrawer.cs.meta | 11 - .../SortingLayerPropertyDrawer.cs | 91 - .../SortingLayerPropertyDrawer.cs.meta | 11 - .../PropertyDrawers/TagPropertyDrawer.cs | 62 - .../PropertyDrawers/TagPropertyDrawer.cs.meta | 11 - .../Editor/PropertyDrawers_SpecialCase.meta | 8 - .../ReorderableListPropertyDrawer.cs | 205 -- .../ReorderableListPropertyDrawer.cs.meta | 11 - .../SpecialCasePropertyDrawerBase.cs | 74 - .../SpecialCasePropertyDrawerBase.cs.meta | 11 - .../Scripts/Editor/PropertyValidators.meta | 8 - .../MaxValuePropertyValidator.cs | 53 - .../MaxValuePropertyValidator.cs.meta | 11 - .../MinValuePropertyValidator.cs | 53 - .../MinValuePropertyValidator.cs.meta | 11 - .../PropertyValidatorBase.cs | 38 - .../PropertyValidatorBase.cs.meta | 11 - .../RequiredPropertyValidator.cs | 31 - .../RequiredPropertyValidator.cs.meta | 11 - .../ValidateInputPropertyValidator.cs | 76 - .../ValidateInputPropertyValidator.cs.meta | 11 - .../Scripts/Editor/Utility.meta | 10 - .../Scripts/Editor/Utility/ButtonUtility.cs | 55 - .../Editor/Utility/ButtonUtility.cs.meta | 11 - .../Editor/Utility/NaughtyEditorGUI.cs | 380 --- .../Editor/Utility/NaughtyEditorGUI.cs.meta | 13 - .../Scripts/Editor/Utility/PropertyUtility.cs | 374 --- .../Editor/Utility/PropertyUtility.cs.meta | 11 - .../Editor/Utility/ReflectionUtility.cs | 128 - .../Editor/Utility/ReflectionUtility.cs.meta | 13 - .../Scripts/Editor/Utility/SavedBool.cs | 34 - .../Scripts/Editor/Utility/SavedBool.cs.meta | 11 - .../NaughtyAttributes/Scripts/Test.meta | 8 - .../Scripts/Test/AnimatorParamTest.cs | 53 - .../Scripts/Test/AnimatorParamTest.cs.meta | 11 - .../Scripts/Test/BoxGroupTest.cs | 32 - .../Scripts/Test/BoxGroupTest.cs.meta | 11 - .../Scripts/Test/ButtonTest.cs | 39 - .../Scripts/Test/ButtonTest.cs.meta | 11 - .../Scripts/Test/CurveRangeTest.cs | 37 - .../Scripts/Test/CurveRangeTest.cs.meta | 11 - .../Scripts/Test/DisableIfTest.cs | 120 - .../Scripts/Test/DisableIfTest.cs.meta | 11 - .../Scripts/Test/DropdownTest.cs | 45 - .../Scripts/Test/DropdownTest.cs.meta | 11 - .../Scripts/Test/EnableIfTest.cs | 120 - .../Scripts/Test/EnableIfTest.cs.meta | 11 - .../Scripts/Test/EnumFlagsTest.cs | 39 - .../Scripts/Test/EnumFlagsTest.cs.meta | 11 - .../Scripts/Test/ExpandableTest.cs | 31 - .../Scripts/Test/ExpandableTest.cs.meta | 11 - .../Scripts/Test/FoldoutTest.cs | 32 - .../Scripts/Test/FoldoutTest.cs.meta | 11 - .../Scripts/Test/HideIfTest.cs | 119 - .../Scripts/Test/HideIfTest.cs.meta | 11 - .../Scripts/Test/HorizontalLineTest.cs | 51 - .../Scripts/Test/HorizontalLineTest.cs.meta | 11 - .../Scripts/Test/InfoBoxTest.cs | 28 - .../Scripts/Test/InfoBoxTest.cs.meta | 11 - .../Scripts/Test/InputAxisTest.cs | 34 - .../Scripts/Test/InputAxisTest.cs.meta | 11 - .../Scripts/Test/LabelTest.cs | 30 - .../Scripts/Test/LabelTest.cs.meta | 11 - .../Scripts/Test/LayerTest.cs | 46 - .../Scripts/Test/LayerTest.cs.meta | 11 - .../Scripts/Test/MinMaxSliderTest.cs | 28 - .../Scripts/Test/MinMaxSliderTest.cs.meta | 11 - .../Scripts/Test/MinMaxValueTest.cs | 129 - .../Scripts/Test/MinMaxValueTest.cs.meta | 11 - .../Test/NaughtyAttributes.Test.asmdef | 14 - .../Test/NaughtyAttributes.Test.asmdef.meta | 7 - .../Scripts/Test/OnValueChangedTest.cs | 51 - .../Scripts/Test/OnValueChangedTest.cs.meta | 11 - .../Scripts/Test/ProgressBarTest.cs | 35 - .../Scripts/Test/ProgressBarTest.cs.meta | 11 - .../Scripts/Test/ReadOnlyTest.cs | 30 - .../Scripts/Test/ReadOnlyTest.cs.meta | 11 - .../Scripts/Test/ReorderableListTest.cs | 34 - .../Scripts/Test/ReorderableListTest.cs.meta | 11 - .../Scripts/Test/RequiredTest.cs | 30 - .../Scripts/Test/RequiredTest.cs.meta | 11 - .../Scripts/Test/ResizableTextAreaTest.cs | 28 - .../Test/ResizableTextAreaTest.cs.meta | 11 - .../Scripts/Test/SceneTest.cs | 28 - .../Scripts/Test/SceneTest.cs.meta | 11 - .../Scripts/Test/ShowAssetPreviewTest.cs | 37 - .../Scripts/Test/ShowAssetPreviewTest.cs.meta | 11 - .../Scripts/Test/ShowIfTest.cs | 119 - .../Scripts/Test/ShowIfTest.cs.meta | 11 - .../Scripts/Test/ShowNativePropertyTest.cs | 79 - .../Test/ShowNativePropertyTest.cs.meta | 11 - .../Test/ShowNonSerializedFieldTest.cs | 33 - .../Test/ShowNonSerializedFieldTest.cs.meta | 11 - .../Scripts/Test/SortingLayerTest.cs | 46 - .../Scripts/Test/SortingLayerTest.cs.meta | 11 - .../NaughtyAttributes/Scripts/Test/TagTest.cs | 34 - .../Scripts/Test/TagTest.cs.meta | 11 - .../Scripts/Test/ValidateInputTest.cs | 52 - .../Scripts/Test/ValidateInputTest.cs.meta | 11 - .../Scripts/Test/_NaughtyComponent.cs | 19 - .../Scripts/Test/_NaughtyComponent.cs.meta | 13 - .../Scripts/Test/_NaughtyScriptableObject.cs | 12 - .../Test/_NaughtyScriptableObject.cs.meta | 13 - .../Scripts/Test/_TestScriptableObjectA.cs | 12 - .../Test/_TestScriptableObjectA.cs.meta | 11 - .../Scripts/Test/_TestScriptableObjectB.cs | 12 - .../Test/_TestScriptableObjectB.cs.meta | 11 - Unity/Packages/NaughtyAttributes/package.json | 21 - .../NaughtyAttributes/package.json.meta | 7 - Unity/Packages/packages-lock.json | 16 +- 278 files changed, 7 insertions(+), 12371 deletions(-) delete mode 100644 SCHIZO/Interop/NaughtyAttributes/NaughtyAttributesInterop.cs delete mode 100644 Unity/Assets/Editor/Scripts/Patches/NaughtyPatches.cs delete mode 100644 Unity/Assets/Editor/Scripts/Patches/NaughtyPatches.cs.meta delete mode 100644 Unity/Assets/Scripts/SCHIZO/Helpers/BetterDropdownList.cs delete mode 100644 Unity/Assets/Scripts/SCHIZO/Helpers/BetterDropdownList.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/LICENSE delete mode 100644 Unity/Packages/NaughtyAttributes/LICENSE.meta delete mode 100644 Unity/Packages/NaughtyAttributes/README.html delete mode 100644 Unity/Packages/NaughtyAttributes/README.html.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Samples.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Samples/DemoScene.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Samples/DemoScene/DemoScene.unity delete mode 100644 Unity/Packages/NaughtyAttributes/Samples/DemoScene/DemoScene.unity.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Samples/DemoScene/DemoSceneSettings.lighting delete mode 100644 Unity/Packages/NaughtyAttributes/Samples/DemoScene/DemoSceneSettings.lighting.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/Cube.prefab delete mode 100644 Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/Cube.prefab.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/DummyAnimation.anim delete mode 100644 Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/DummyAnimation.anim.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/DummyAnimatorController.controller delete mode 100644 Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/DummyAnimatorController.controller.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/NaughtyScriptableObject.asset delete mode 100644 Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/NaughtyScriptableObject.asset.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/TestScriptableObjectA.asset delete mode 100644 Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/TestScriptableObjectA.asset.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/TestScriptableObjectB.asset delete mode 100644 Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/TestScriptableObjectB.asset.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/icon-github.png delete mode 100644 Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/icon-github.png.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/AllowNestingAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/AllowNestingAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/AnimatorParamAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/AnimatorParamAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/CurveRangeAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/CurveRangeAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/DrawerAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/DrawerAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/DropdownAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/DropdownAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/EnumFlagsAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/EnumFlagsAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/Expandable.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/Expandable.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/HorizontalLineAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/HorizontalLineAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/InfoBoxAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/InfoBoxAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/InputAxisAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/InputAxisAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/LayerAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/LayerAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/MinMaxSliderAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/MinMaxSliderAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/ProgressBarAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/ProgressBarAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/ResizableTextAreaAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/ResizableTextAreaAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/SceneAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/SceneAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/ShowAssetPreviewAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/ShowAssetPreviewAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/SortingLayerAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/SortingLayerAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/TagAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/TagAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ButtonAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ButtonAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ReorderableListAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ReorderableListAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ShowNativePropertyAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ShowNativePropertyAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ShowNonSerializedFieldAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ShowNonSerializedFieldAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/SpecialCaseDrawerAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/SpecialCaseDrawerAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/INaughtyAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/INaughtyAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/BoxGroupAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/BoxGroupAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/DisableIfAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/DisableIfAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/EnableIfAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/EnableIfAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/EnableIfAttributeBase.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/EnableIfAttributeBase.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/FoldoutAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/FoldoutAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/HideIfAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/HideIfAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/IGroupAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/IGroupAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/LabelAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/LabelAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/MetaAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/MetaAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/OnValueChangedAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/OnValueChangedAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/ReadOnlyAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/ReadOnlyAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/ShowIfAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/ShowIfAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/ShowIfAttributeBase.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/ShowIfAttributeBase.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/NaughtyAttributes.Core.asmdef delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/NaughtyAttributes.Core.asmdef.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/Utility.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/Utility/EColor.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/Utility/EColor.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/Utility/EConditionOperator.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/Utility/EConditionOperator.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/MaxValueAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/MaxValueAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/MinValueAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/MinValueAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/RequiredAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/RequiredAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/ValidateInputAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/ValidateInputAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/ValidatorAttribute.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/ValidatorAttribute.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/DecoratorDrawers.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/DecoratorDrawers/HorizontalLineDecoratorDrawer.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/DecoratorDrawers/HorizontalLineDecoratorDrawer.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/DecoratorDrawers/InfoBoxDecoratorDrawer.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/DecoratorDrawers/InfoBoxDecoratorDrawer.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/NaughtyAttributes.Editor.asmdef delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/NaughtyAttributes.Editor.asmdef.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/NaughtyInspector.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/NaughtyInspector.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/AllowNestingPropertyDrawer.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/AllowNestingPropertyDrawer.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/AnimatorParamPropertyDrawer.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/AnimatorParamPropertyDrawer.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/CurveRangePropertyDrawer.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/CurveRangePropertyDrawer.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/DropdownPropertyDrawer.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/DropdownPropertyDrawer.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/EnumFlagsPropertyDrawer.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/EnumFlagsPropertyDrawer.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ExpandablePropertyDrawer.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ExpandablePropertyDrawer.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/InputAxisPropertyDrawer.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/InputAxisPropertyDrawer.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/LayerPropertyDrawer.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/LayerPropertyDrawer.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/MinMaxSliderPropertyDrawer.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/MinMaxSliderPropertyDrawer.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ProgressBarPropertyDrawer.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ProgressBarPropertyDrawer.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/PropertyDrawerBase.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/PropertyDrawerBase.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ResizableTextAreaPropertyDrawer.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ResizableTextAreaPropertyDrawer.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ScenePropertyDrawer.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ScenePropertyDrawer.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ShowAssetPreviewPropertyDrawer.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ShowAssetPreviewPropertyDrawer.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/SortingLayerPropertyDrawer.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/SortingLayerPropertyDrawer.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/TagPropertyDrawer.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/TagPropertyDrawer.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers_SpecialCase.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers_SpecialCase/ReorderableListPropertyDrawer.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers_SpecialCase/ReorderableListPropertyDrawer.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers_SpecialCase/SpecialCasePropertyDrawerBase.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers_SpecialCase/SpecialCasePropertyDrawerBase.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/MaxValuePropertyValidator.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/MaxValuePropertyValidator.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/MinValuePropertyValidator.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/MinValuePropertyValidator.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/PropertyValidatorBase.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/PropertyValidatorBase.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/RequiredPropertyValidator.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/RequiredPropertyValidator.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/ValidateInputPropertyValidator.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/ValidateInputPropertyValidator.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/ButtonUtility.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/ButtonUtility.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/NaughtyEditorGUI.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/NaughtyEditorGUI.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/PropertyUtility.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/PropertyUtility.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/ReflectionUtility.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/ReflectionUtility.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/SavedBool.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/SavedBool.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/AnimatorParamTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/AnimatorParamTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/BoxGroupTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/BoxGroupTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/ButtonTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/ButtonTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/CurveRangeTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/CurveRangeTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/DisableIfTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/DisableIfTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/DropdownTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/DropdownTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/EnableIfTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/EnableIfTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/EnumFlagsTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/EnumFlagsTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/ExpandableTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/ExpandableTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/FoldoutTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/FoldoutTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/HideIfTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/HideIfTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/HorizontalLineTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/HorizontalLineTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/InfoBoxTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/InfoBoxTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/InputAxisTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/InputAxisTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/LabelTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/LabelTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/LayerTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/LayerTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/MinMaxSliderTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/MinMaxSliderTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/MinMaxValueTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/MinMaxValueTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/NaughtyAttributes.Test.asmdef delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/NaughtyAttributes.Test.asmdef.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/OnValueChangedTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/OnValueChangedTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/ProgressBarTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/ProgressBarTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/ReadOnlyTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/ReadOnlyTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/ReorderableListTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/ReorderableListTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/RequiredTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/RequiredTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/ResizableTextAreaTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/ResizableTextAreaTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/SceneTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/SceneTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/ShowAssetPreviewTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/ShowAssetPreviewTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/ShowIfTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/ShowIfTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/ShowNativePropertyTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/ShowNativePropertyTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/ShowNonSerializedFieldTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/ShowNonSerializedFieldTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/SortingLayerTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/SortingLayerTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/TagTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/TagTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/ValidateInputTest.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/ValidateInputTest.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/_NaughtyComponent.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/_NaughtyComponent.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/_NaughtyScriptableObject.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/_NaughtyScriptableObject.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/_TestScriptableObjectA.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/_TestScriptableObjectA.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/_TestScriptableObjectB.cs delete mode 100644 Unity/Packages/NaughtyAttributes/Scripts/Test/_TestScriptableObjectB.cs.meta delete mode 100644 Unity/Packages/NaughtyAttributes/package.json delete mode 100644 Unity/Packages/NaughtyAttributes/package.json.meta diff --git a/SCHIZO/Interop/NaughtyAttributes/NaughtyAttributesInterop.cs b/SCHIZO/Interop/NaughtyAttributes/NaughtyAttributesInterop.cs deleted file mode 100644 index dbf00974..00000000 --- a/SCHIZO/Interop/NaughtyAttributes/NaughtyAttributesInterop.cs +++ /dev/null @@ -1,25 +0,0 @@ -// ReSharper disable UnusedParameter.Local -// ReSharper disable UnusedType.Global - -#pragma warning disable CS9113 // Parameter is unread. - -using System; -using System.Collections.Generic; -using System.Diagnostics; - -// ReSharper disable once CheckNamespace -namespace NaughtyAttributes; - -[Obsolete] -public enum EConditionOperator -{ - And, - Or -} - -[Obsolete] -internal interface IDropdownList : IEnumerable>; - -[Conditional("NEVER")] -[Obsolete] -public class FoldoutAttribute(string name) : Attribute; diff --git a/Unity/Assets/Editor/Scripts/Patches/Editor.Patches.asmdef b/Unity/Assets/Editor/Scripts/Patches/Editor.Patches.asmdef index ef318926..4d893e7d 100644 --- a/Unity/Assets/Editor/Scripts/Patches/Editor.Patches.asmdef +++ b/Unity/Assets/Editor/Scripts/Patches/Editor.Patches.asmdef @@ -3,7 +3,6 @@ "references": [ "GUID:3d316254c8cfea64cb626dce93a4def6", "GUID:c4b8fc492eac8184fb9a42684cf8c464", - "GUID:776d03a35f1b52c4a9aed9f56d7b4229", "GUID:f88fb04354076c646a4107a491394033", "GUID:6ed54bcbddd234d55b95cd3dd4df4bec" ], @@ -20,4 +19,4 @@ "defineConstraints": [], "versionDefines": [], "noEngineReferences": false -} +} \ No newline at end of file diff --git a/Unity/Assets/Editor/Scripts/Patches/NaughtyPatches.cs b/Unity/Assets/Editor/Scripts/Patches/NaughtyPatches.cs deleted file mode 100644 index fa694644..00000000 --- a/Unity/Assets/Editor/Scripts/Patches/NaughtyPatches.cs +++ /dev/null @@ -1,80 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; -using HarmonyLib; -using NaughtyAttributes.Editor; -using SCHIZO.Helpers; -using UnityEditor; -using UnityEngine; - -namespace Editor.Scripts.Patches -{ - [HarmonyPatch] - public static class NaughtyPatches - { - [HarmonyPatch(typeof(ReflectionUtility))] - public static class ReflectionPerfDetours - { - [HarmonyPatch(nameof(ReflectionUtility.GetField))] - [HarmonyPrefix] - public static bool FieldLookupPerfDetour(out FieldInfo __result, object target, string fieldName) - { - __result = null; - if (target != null) __result = ReflectionCache.GetField(target.GetType(), fieldName); - - return false; - } - - [HarmonyPatch(nameof(ReflectionUtility.GetMethod))] - [HarmonyPrefix] - public static bool MethodLookupPerfDetour(out MethodInfo __result, object target, string methodName) - { - __result = null; - if (target != null) __result = ReflectionCache.GetMethod(target.GetType(), methodName); - - return false; - } - - [HarmonyPatch(nameof(ReflectionUtility.GetProperty))] - [HarmonyPrefix] - public static bool PropertyLookupPerfDetour(out PropertyInfo __result, object target, string propertyName) - { - __result = null; - if (target != null) __result = ReflectionCache.GetProperty(target.GetType(), propertyName); - - return false; - } - - [HarmonyPatch("GetSelfAndBaseTypes")] - [HarmonyPrefix] - public static bool TypeHierarchyPerfDetour(out List __result, object target) - { - __result = ReflectionHelpers.WalkTypeHierarchy(target?.GetType()).ToList(); - return false; - } - } - - [HarmonyPatch(typeof(NaughtyInspector), "OnEnable")] - [HarmonyPostfix] - public static void EnumerablePerfDetour(NaughtyInspector __instance, - ref IEnumerable ____nonSerializedFields, - ref IEnumerable ____nativeProperties, - ref IEnumerable ____methods) - { - if (!__instance.target) return; - - ____nonSerializedFields = ____nonSerializedFields.ToList(); - ____nativeProperties = ____nativeProperties.ToList(); - ____methods = ____methods.ToList(); - } - - [HarmonyPatch(typeof(PropertyUtility), nameof(PropertyUtility.GetLabel))] - [HarmonyPostfix] - public static void AddTooltip(SerializedProperty property, ref GUIContent __result) - { - TooltipAttribute tooltip = PropertyUtility.GetAttribute(property); - if (tooltip != null) __result.tooltip = tooltip.tooltip; - } - } -} diff --git a/Unity/Assets/Editor/Scripts/Patches/NaughtyPatches.cs.meta b/Unity/Assets/Editor/Scripts/Patches/NaughtyPatches.cs.meta deleted file mode 100644 index a5459c21..00000000 --- a/Unity/Assets/Editor/Scripts/Patches/NaughtyPatches.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: f03ff73a61240f94eacfc99f6748d41f -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Assets/Scripts/ECCLibrary/ECCLibrary.asmdef b/Unity/Assets/Scripts/ECCLibrary/ECCLibrary.asmdef index ff017775..6c83d0e1 100644 --- a/Unity/Assets/Scripts/ECCLibrary/ECCLibrary.asmdef +++ b/Unity/Assets/Scripts/ECCLibrary/ECCLibrary.asmdef @@ -1,7 +1,6 @@ { "name": "ECCLibrary", "references": [ - "GUID:776d03a35f1b52c4a9aed9f56d7b4229", "GUID:3d316254c8cfea64cb626dce93a4def6", "GUID:324caed91501a9c47a04ebfd87b68794" ], @@ -14,4 +13,4 @@ "defineConstraints": [], "versionDefines": [], "noEngineReferences": false -} +} \ No newline at end of file diff --git a/Unity/Assets/Scripts/SCHIZO/Helpers/BetterDropdownList.cs b/Unity/Assets/Scripts/SCHIZO/Helpers/BetterDropdownList.cs deleted file mode 100644 index 9b54da22..00000000 --- a/Unity/Assets/Scripts/SCHIZO/Helpers/BetterDropdownList.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using NaughtyAttributes; - -namespace SCHIZO.Helpers -{ - [Obsolete("", true)] - public class BetterDropdownList : Dictionary, IDropdownList - { - IEnumerator> IEnumerable>.GetEnumerator() - { - foreach (KeyValuePair kv in this) - { - yield return new KeyValuePair(kv.Key, kv.Value); - } - } - - IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); - } -} diff --git a/Unity/Assets/Scripts/SCHIZO/Helpers/BetterDropdownList.cs.meta b/Unity/Assets/Scripts/SCHIZO/Helpers/BetterDropdownList.cs.meta deleted file mode 100644 index c37ca94c..00000000 --- a/Unity/Assets/Scripts/SCHIZO/Helpers/BetterDropdownList.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 98159ce75d69c9549b38af0c1b5c5d2b -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Assets/Scripts/SCHIZO/SCHIZO.asmdef b/Unity/Assets/Scripts/SCHIZO/SCHIZO.asmdef index 4eab6eec..b527da2a 100644 --- a/Unity/Assets/Scripts/SCHIZO/SCHIZO.asmdef +++ b/Unity/Assets/Scripts/SCHIZO/SCHIZO.asmdef @@ -1,7 +1,6 @@ { "name": "SCHIZO", "references": [ - "GUID:776d03a35f1b52c4a9aed9f56d7b4229", "GUID:77ccaf49895b0d64e87cd4b4faf83c49", "GUID:324caed91501a9c47a04ebfd87b68794" ], diff --git a/Unity/Packages/NaughtyAttributes/LICENSE b/Unity/Packages/NaughtyAttributes/LICENSE deleted file mode 100644 index 65b79865..00000000 --- a/Unity/Packages/NaughtyAttributes/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Denis Rizov - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/Unity/Packages/NaughtyAttributes/LICENSE.meta b/Unity/Packages/NaughtyAttributes/LICENSE.meta deleted file mode 100644 index 1684f467..00000000 --- a/Unity/Packages/NaughtyAttributes/LICENSE.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 3c6d7874169cef74ebc3c46c3164e6e2 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/README.html b/Unity/Packages/NaughtyAttributes/README.html deleted file mode 100644 index 5df2d2d5..00000000 --- a/Unity/Packages/NaughtyAttributes/README.html +++ /dev/null @@ -1,1648 +0,0 @@ - - - - - README.md - Grip - - - - - - -
-
- - - -
-
-
-
- -

- - README.md -

- -
-

-NaughtyAttributes

-

Unity 2018.3+ -openupm -License: MIT

-

NaughtyAttributes is an extension for the Unity Inspector.

-

It expands the range of attributes that Unity provides so that you can create powerful inspectors without the need of custom editors or property drawers. It also provides attributes that can be applied to non-serialized fields or functions.

-

Most of the attributes are implemented using Unity's CustomPropertyDrawer, so they will work in your custom editors. If you want all of the attributes to work in your custom editors, however, you must inherit from NaughtyInspector and use the NaughtyEditorGUI.PropertyField_Layout function instead of EditorGUILayout.PropertyField.

-

-System Requirements

-

Unity 2018.3.0 or later versions. Feel free to try older version. Don't forget to include the NaughtyAttributes namespace.

-

-Installation

-
    -
  1. The package is available on the openupm registry. You can install it via openupm-cli.
  2. -
-
openupm add com.dbrizov.naughtyattributes
-
-
    -
  1. You can also install via git url by adding this entry in your manifest.json -
  2. -
-
"com.dbrizov.naughtyattributes": "https://github.com/dbrizov/NaughtyAttributes.git#upm"
-
-
    -
  1. You can also download it from the Asset Store -
  2. -
-

-Documentation

- -

-Support

-

NaughtyAttributes is an open-source project that I am developing in my free time. If you like it you can support me by donating.

- -

-Overview

-

-Drawer Attributes

-

Provide special draw options to serialized fields. -A field can have only one DrawerAttribute. If a field has more than one, only the bottom one will be used.

-

-AnimatorParam

-

Select an Animator paramater via dropdown interface.

-
public class NaughtyComponent : MonoBehaviour
-{
-	public Animator someAnimator;
-
-	[AnimatorParam("someAnimator")]
-	public int paramHash;
-
-	[AnimatorParam("someAnimator")]
-	public string paramName;
-}
-

inspector

-

-Button

-

A method can be marked as a button. A button appears in the inspector and executes the method if clicked. -Works both with instance and static methods.

-
public class NaughtyComponent : MonoBehaviour
-{
-	[Button]
-	private void MethodOne() { }
-
-	[Button("Button Text")]
-	private void MethodTwo() { }
-}
-

inspector

-

-CurveRange

-

Set bounds and modify curve color for AnimationCurves

-
public class NaughtyComponent : MonoBehaviour
-{
-	[CurveRange(-1, -1, 1, 1)]
-	public AnimationCurve curve;
-	
-	[CurveRange(EColor.Orange)]
-	public AnimationCurve curve1;
-	
-	[CurveRange(0, 0, 5, 5, EColor.Red)]
-	public AnimationCurve curve2;
-}
-

inspector

-

-Dropdown

-

Provides an interface for dropdown value selection.

-
public class NaughtyComponent : MonoBehaviour
-{
-	[Dropdown("intValues")]
-	public int intValue;
-
-	[Dropdown("StringValues")]
-	public string stringValue;
-
-	[Dropdown("GetVectorValues")]
-	public Vector3 vectorValue;
-
-	private int[] intValues = new int[] { 1, 2, 3, 4, 5 };
-
-	private List<string> StringValues { get { return new List<string>() { "A", "B", "C", "D", "E" }; } }
-
-	private DropdownList<Vector3> GetVectorValues()
-	{
-		return new DropdownList<Vector3>()
-		{
-			{ "Right",   Vector3.right },
-			{ "Left",    Vector3.left },
-			{ "Up",      Vector3.up },
-			{ "Down",    Vector3.down },
-			{ "Forward", Vector3.forward },
-			{ "Back",    Vector3.back }
-		};
-	}
-}
-

inspector

-

-EnumFlags

-

Provides dropdown interface for setting enum flags.

-
public enum Direction
-{
-	None = 0,
-	Right = 1 << 0,
-	Left = 1 << 1,
-	Up = 1 << 2,
-	Down = 1 << 3
-}
-
-public class NaughtyComponent : MonoBehaviour
-{
-	[EnumFlags]
-	public Direction flags;
-}
-

inspector

-

-Expandable

-

Make scriptable objects expandable.

-
public class NaughtyComponent : MonoBehaviour
-{
-	[Expandable]
-	public ScriptableObject scriptableObject;
-}
-

inspector

-

-HorizontalLine

-
public class NaughtyComponent : MonoBehaviour
-{
-	[HorizontalLine(color: EColor.Red)]
-	public int red;
-
-	[HorizontalLine(color: EColor.Green)]
-	public int green;
-
-	[HorizontalLine(color: EColor.Blue)]
-	public int blue;
-}
-

inspector

-

-InfoBox

-

Used for providing additional information.

-
public class NaughtyComponent : MonoBehaviour
-{
-	[InfoBox("This is my int", EInfoBoxType.Normal)]
-	public int myInt;
-
-	[InfoBox("This is my float", EInfoBoxType.Warning)]
-	public float myFloat;
-
-	[InfoBox("This is my vector", EInfoBoxType.Error)]
-	public Vector3 myVector;
-}
-

inspector

-

-InputAxis

-

Select an input axis via dropdown interface.

-
public class NaughtyComponent : MonoBehaviour
-{
-	[InputAxis]
-	public string inputAxis;
-}
-

inspector

-

-MinMaxSlider

-

A double slider. The min value is saved to the X property, and the max value is saved to the Y property of a Vector2 field.

-
public class NaughtyComponent : MonoBehaviour
-{
-	[MinMaxSlider(0.0f, 100.0f)]
-	public Vector2 minMaxSlider;
-}
-

inspector

-

-ProgressBar

-
public class NaughtyComponent : MonoBehaviour
-{
-	[ProgressBar("Health", 300, EColor.Red)]
-	public int health = 250;
-
-	[ProgressBar("Mana", 100, EColor.Blue)]
-	public int mana = 25;
-
-	[ProgressBar("Stamina", 200, EColor.Green)]
-	public int stamina = 150;
-}
-

inspector

-

-ReorderableList

-

Provides array type fields with an interface for easy reordering of elements.

-
public class NaughtyComponent : MonoBehaviour
-{
-	[ReorderableList]
-	public int[] intArray;
-
-	[ReorderableList]
-	public List<float> floatArray;
-}
-

inspector

-

-ReadOnly

-

Makes a field read only.

-
public class NaughtyComponent : MonoBehaviour
-{
-	[ReadOnly]
-	public Vector3 forwardVector = Vector3.forward;
-}
-

inspector

-

-ResizableTextArea

-

A resizable text area where you can see the whole text. -Unlike Unity's Multiline and TextArea attributes where you can see only 3 rows of a given text, and in order to see it or modify it you have to manually scroll down to the desired row.

-
public class NaughtyComponent : MonoBehaviour
-{
-	[ResizableTextArea]
-	public string resizableTextArea;
-}
-

inspector

-

-Scene

-

Select a scene from the build settings via dropdown interface.

-
public class NaughtyComponent : MonoBehaviour
-{
-	[Scene]
-	public string bootScene; // scene name
-
-	[Scene]
-	public int tutorialScene; // scene index
-}
-

inspector

-

-ShowAssetPreview

-

Shows the texture preview of a given asset (Sprite, Prefab...).

-
public class NaughtyComponent : MonoBehaviour
-{
-	[ShowAssetPreview]
-	public Sprite sprite;
-
-	[ShowAssetPreview(128, 128)]
-	public GameObject prefab;
-}
-

inspector

-

-ShowNativeProperty

-

Shows native C# properties in the inspector. -All native properties are displayed at the bottom of the inspector after the non-serialized fields and before the method buttons. -It supports only certain types (bool, int, long, float, double, string, Vector2, Vector3, Vector4, Color, Bounds, Rect, UnityEngine.Object).

-
public class NaughtyComponent : MonoBehaviour
-{
-	public List<Transform> transforms;
-
-	[ShowNativeProperty]
-	public int TransformsCount => transforms.Count;
-}
-

inspector

-

-ShowNonSerializedField

-

Shows non-serialized fields in the inspector. -All non-serialized fields are displayed at the bottom of the inspector before the method buttons. -Keep in mind that if you change a non-static non-serialized field in the code - the value in the inspector will be updated after you press Play in the editor. -There is no such issue with static non-serialized fields because their values are updated at compile time. -It supports only certain types (bool, int, long, float, double, string, Vector2, Vector3, Vector4, Color, Bounds, Rect, UnityEngine.Object).

-
public class NaughtyComponent : MonoBehaviour
-{
-	[ShowNonSerializedField]
-	private int myInt = 10;
-
-	[ShowNonSerializedField]
-	private const float PI = 3.14159f;
-
-	[ShowNonSerializedField]
-	private static readonly Vector3 CONST_VECTOR = Vector3.one;
-}
-

inspector

-

-Tag

-

Select a tag via dropdown interface.

-
public class NaughtyComponent : MonoBehaviour
-{
-	[Tag]
-	public string tagField;
-}
-

inspector

-

-Meta Attributes

-

Give the fields meta data. A field can have more than one meta attributes.

-

-BoxGroup

-

Surrounds grouped fields with a box.

-
public class NaughtyComponent : MonoBehaviour
-{
-	[BoxGroup("Integers")]
-	public int firstInt;
-	[BoxGroup("Integers")]
-	public int secondInt;
-
-	[BoxGroup("Floats")]
-	public float firstFloat;
-	[BoxGroup("Floats")]
-	public float secondFloat;
-}
-

inspector

-

-Foldout

-

Makes a foldout group.

-
public class NaughtyComponent : MonoBehaviour
-{
-	[Foldout("Integers")]
-	public int firstInt;
-	[Foldout("Integers")]
-	public int secondInt;
-}
-

inspector

-

-EnableIf / DisableIf

-
public class NaughtyComponent : MonoBehaviour
-{
-	public bool enableMyInt;
-
-	[EnableIf("enableMyInt")]
-	public int myInt;
-
-	[EnableIf("Enabled")]
-	public float myFloat;
-
-	[EnableIf("NotEnabled")]
-	public Vector3 myVector;
-
-	public bool Enabled() { return true; }
-
-	public bool NotEnabled => false;
-}
-

inspector

-

You can have more than one condition.

-
public class NaughtyComponent : MonoBehaviour
-{
-	public bool flag0;
-	public bool flag1;
-
-	[EnableIf(EConditionOperator.And, "flag0", "flag1")]
-	public int enabledIfAll;
-
-	[EnableIf(EConditionOperator.Or, "flag0", "flag1")]
-	public int enabledIfAny;
-}
-

-ShowIf / HideIf

-
public class NaughtyComponent : MonoBehaviour
-{
-	public bool showInt;
-
-	[ShowIf("showInt")]
-	public int myInt;
-
-	[ShowIf("AlwaysShow")]
-	public float myFloat;
-
-	[ShowIf("NeverShow")]
-	public Vector3 myVector;
-
-	public bool AlwaysShow() { return true; }
-
-	public bool NeverShow => false;
-}
-

inspector

-

You can have more than one condition.

-
public class NaughtyComponent : MonoBehaviour
-{
-	public bool flag0;
-	public bool flag1;
-
-	[ShowIf(EConditionOperator.And, "flag0", "flag1")]
-	public int showIfAll;
-
-	[ShowIf(EConditionOperator.Or, "flag0", "flag1")]
-	public int showIfAny;
-}
-

-Label

-

Override default field label.

-
public class NaughtyComponent : MonoBehaviour
-{
-	[Label("Short Name")]
-	public string veryVeryLongName;
-
-	[Label("RGB")]
-	public Vector3 vectorXYZ;
-}
-

inspector

-

-OnValueChanged

-

Detects a value change and executes a callback. -Keep in mind that the event is detected only when the value is changed from the inspector. -If you want a runtime event, you should probably use an event/delegate and subscribe to it.

-
public class NaughtyComponent : MonoBehaviour
-{
-	[OnValueChanged("OnValueChangedCallback")]
-	public int myInt;
-
-	private void OnValueChangedCallback()
-	{
-		Debug.Log(myInt);
-	}
-}
-

-Validator Attributes

-

Used for validating the fields. A field can have infinite number of validator attributes.

-

-MinValue / MaxValue

-

Clamps integer and float fields.

-
public class NaughtyComponent : MonoBehaviour
-{
-	[MinValue(0), MaxValue(10)]
-	public int myInt;
-
-	[MinValue(0.0f)]
-	public float myFloat;
-}
-

inspector

-

-Required

-

Used to remind the developer that a given reference type field is required.

-
public class NaughtyComponent : MonoBehaviour
-{
-	[Required]
-	public Transform myTransform;
-
-	[Required("Custom required text")]
-	public GameObject myGameObject;
-}
-

inspector

-

-ValidateInput

-

The most powerful ValidatorAttribute.

-
public class _NaughtyComponent : MonoBehaviour
-{
-	[ValidateInput("IsNotNull")]
-	public Transform myTransform;
-
-	[ValidateInput("IsGreaterThanZero", "myInteger must be greater than zero")]
-	public int myInt;
-
-	private bool IsNotNull(Transform tr)
-	{
-		return tr != null;
-	}
-
-	private bool IsGreaterThanZero(int value)
-	{
-		return value > 0;
-	}
-}
-

inspector

- -
-
-
-
-
- - - -
-
 
-
- - \ No newline at end of file diff --git a/Unity/Packages/NaughtyAttributes/README.html.meta b/Unity/Packages/NaughtyAttributes/README.html.meta deleted file mode 100644 index 42c42d4a..00000000 --- a/Unity/Packages/NaughtyAttributes/README.html.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: f1c5c604e6d27cc4d86e81f45c704e11 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Samples.meta b/Unity/Packages/NaughtyAttributes/Samples.meta deleted file mode 100644 index db0978e4..00000000 --- a/Unity/Packages/NaughtyAttributes/Samples.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b1e9ff0668650a54da2c458e80a90032 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Samples/DemoScene.meta b/Unity/Packages/NaughtyAttributes/Samples/DemoScene.meta deleted file mode 100644 index 91002d88..00000000 --- a/Unity/Packages/NaughtyAttributes/Samples/DemoScene.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: afb4c815411c28b449e61fbaa1a8bfa3 -folderAsset: yes -timeCreated: 1507995550 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/DemoScene.unity b/Unity/Packages/NaughtyAttributes/Samples/DemoScene/DemoScene.unity deleted file mode 100644 index 3c134139..00000000 --- a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/DemoScene.unity +++ /dev/null @@ -1,2415 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 9 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.44657874, g: 0.49641258, b: 0.5748172, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 12 - m_GIWorkflowMode: 0 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 12 - m_Resolution: 2 - m_BakeResolution: 40 - m_AtlasSize: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_ExtractAmbientOcclusion: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 0 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVRBounces: 2 - m_PVREnvironmentSampleCount: 500 - m_PVREnvironmentReferencePointCount: 2048 - m_PVRFilteringMode: 2 - m_PVRDenoiserTypeDirect: 0 - m_PVRDenoiserTypeIndirect: 0 - m_PVRDenoiserTypeAO: 0 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVREnvironmentMIS: 0 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ExportTrainingData: 0 - m_TrainingDataDestination: TrainingData - m_LightProbeSampleCountMultiplier: 4 - m_LightingDataAsset: {fileID: 0} - m_LightingSettings: {fileID: 4890085278179872738, guid: 98ee975b74776234986f4d35f14c4ccc, - type: 2} ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - maxJobWorkers: 0 - preserveTilesOutsideBounds: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &106181862 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 106181863} - m_Layer: 0 - m_Name: ===== Drawer Attributes ===== - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &106181863 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 106181862} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &114650323 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 114650324} - - component: {fileID: 114650325} - - component: {fileID: 114650326} - m_Layer: 0 - m_Name: EnableIf_DisableIf - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &114650324 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 114650323} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 24 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &114650325 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 114650323} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: bed506d8be3a10f45bec4bf2237bec87, type: 3} - m_Name: - m_EditorClassIdentifier: - enable1: 0 - enable2: 0 - enum1: 0 - enum2: 0 - enableIfAll: - enableIfAny: - enableIfEnum: - enableIfEnumFlag: - enableIfEnumFlagMulti: - nest1: - enable1: 1 - enable2: 0 - enum1: 0 - enum2: 0 - enableIfAll: 1 - enableIfAny: 2 - enableIfEnum: 0 - enableIfEnumFlag: 0 - enableIfEnumFlagMulti: 0 - nest2: - enable1: 1 - enable2: 1 - enum1: 0 - enum2: 0 - enableIfAll: {x: 0.25, y: 0.75} - enableIfAny: {x: 0.25, y: 0.75} - enableIfEnum: {x: 0.25, y: 0.75} - enableIfEnumFlag: {x: 0, y: 0} - enableIfEnumFlagMulti: {x: 0, y: 0} ---- !u!114 &114650326 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 114650323} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 0e48a088cb96287448c3be58932bfcb7, type: 3} - m_Name: - m_EditorClassIdentifier: - disable1: 0 - disable2: 0 - enum1: 0 - enum2: 0 - disableIfAll: - disableIfAny: - disableIfEnum: - disableIfEnumFlag: - disableIfEnumFlagMulti: - nest1: - disable1: 1 - disable2: 0 - enum1: 0 - enum2: 0 - disableIfAll: 1 - disableIfAny: 2 - disableIfEnum: 3 - disableIfEnumFlag: 0 - disableIfEnumFlagMulti: 0 - nest2: - disable1: 1 - disable2: 1 - enum1: 0 - enum2: 0 - enableIfAll: {x: 0.25, y: 0.75} - enableIfAny: {x: 0.25, y: 0.75} - enableIfEnum: {x: 0.25, y: 0.75} - disableIfEnumFlag: {x: 0, y: 0} - disableIfEnumFlagMulti: {x: 0, y: 0} ---- !u!1 &155697335 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 155697336} - - component: {fileID: 155697337} - m_Layer: 0 - m_Name: InputAxis - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &155697336 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 155697335} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 9 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &155697337 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 155697335} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: e0cc8a31c22090847b75538c0ed2d2fc, type: 3} - m_Name: - m_EditorClassIdentifier: - inputAxis0: - nest1: - inputAxis1: Horizontal - nest2: - inputAxis2: Vertical ---- !u!1 &237121640 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 237121641} - - component: {fileID: 237121642} - m_Layer: 0 - m_Name: ReadOnly - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &237121641 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 237121640} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 28 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &237121642 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 237121640} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5443d37a05e188846bda9b05b067184e, type: 3} - m_Name: - m_EditorClassIdentifier: - readOnlyInt: 5 - nest1: - readOnlyFloat: 3.14 - nest2: - readOnlyString: ---- !u!1 &369789276 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 369789277} - - component: {fileID: 369789278} - m_Layer: 0 - m_Name: Required - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &369789277 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 369789276} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 31 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &369789278 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 369789276} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 9c8c10b2234650d42b2a8efad6b413db, type: 3} - m_Name: - m_EditorClassIdentifier: - trans0: {fileID: 0} - nest1: - trans1: {fileID: 0} - nest2: - trans2: {fileID: 0} ---- !u!1 &572382748 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 572382749} - - component: {fileID: 572382751} - m_Layer: 0 - m_Name: Foldout - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &572382749 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 572382748} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 23 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &572382751 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 572382748} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3b437215d92efa74ea85ff726ca0dd09, type: 3} - m_Name: - m_EditorClassIdentifier: - int0: 0 - int1: 0 - float0: 0 - float1: 0 - slider0: {x: 0.25, y: 0.75} - slider1: {x: 0.25, y: 0.75} - str0: - str1: - trans0: {fileID: 0} - trans1: {fileID: 0} ---- !u!1 &607441873 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 607441874} - - component: {fileID: 607441875} - m_Layer: 0 - m_Name: MinMaxSlider - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &607441874 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 607441873} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 11 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &607441875 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 607441873} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fd67fbde6acdd6a44944f12e507067c5, type: 3} - m_Name: - m_EditorClassIdentifier: - minMaxSlider0: {x: 0, y: 0.5} - nest1: - minMaxSlider1: {x: 0.25, y: 0.75} - nest2: - minMaxSlider2: {x: 6, y: 11} ---- !u!1 &706445688 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 706445689} - - component: {fileID: 706445690} - m_Layer: 0 - m_Name: NaughtyComponent - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &706445689 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 706445688} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &706445690 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 706445688} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 9c928ea15ae74a44089beb2e534c1a35, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &732714203 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 732714204} - m_Layer: 0 - m_Name: ===== Meta Attributes ===== - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &732714204 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 732714203} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 21 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &779670086 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 779670087} - - component: {fileID: 779670088} - m_Layer: 0 - m_Name: Dropdown - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &779670087 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 779670086} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 4 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &779670088 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 779670086} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3855e37cd6b01194e8166573c7c4b37d, type: 3} - m_Name: - m_EditorClassIdentifier: - intValue: 1 - nest1: - stringValue: A - nest2: - vectorValue: {x: 1, y: 0, z: 0} ---- !u!1 &892661554 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 892661555} - - component: {fileID: 892661556} - m_Layer: 0 - m_Name: Scene - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &892661555 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 892661554} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 15 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &892661556 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 892661554} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 281a85803caf74a459439020a0840fa4, type: 3} - m_Name: - m_EditorClassIdentifier: - scene0: DemoScene - nest1: - scene1: DemoScene - nest2: - scene2: 0 ---- !u!1 &933563384 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 933563385} - - component: {fileID: 933563386} - m_Layer: 0 - m_Name: ShowAssetPreview - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &933563385 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 933563384} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 16 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &933563386 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 933563384} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 705c14aa9ecaa274289972381f471367, type: 3} - m_Name: - m_EditorClassIdentifier: - sprite0: {fileID: 21300000, guid: 005888ede18a58e4db8d069cfa3007cb, type: 3} - prefab0: {fileID: 1981131855061102, guid: 7ec354ef3daae7641b7a3fa5e1fe0c81, type: 3} - nest1: - sprite1: {fileID: 21300000, guid: 005888ede18a58e4db8d069cfa3007cb, type: 3} - prefab1: {fileID: 1981131855061102, guid: 7ec354ef3daae7641b7a3fa5e1fe0c81, type: 3} - nest2: - sprite2: {fileID: 21300000, guid: 005888ede18a58e4db8d069cfa3007cb, type: 3} - prefab2: {fileID: 1981131855061102, guid: 7ec354ef3daae7641b7a3fa5e1fe0c81, - type: 3} ---- !u!1 &948946033 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 948946034} - - component: {fileID: 948946035} - m_Layer: 0 - m_Name: ProgressBar - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &948946034 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 948946033} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 12 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &948946035 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 948946033} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 96ca4c27fc649764b9d1625f1740cb9e, type: 3} - m_Name: - m_EditorClassIdentifier: - health: 50 - nest1: - mana: 25 - nest2: - stamina: 75 - elixir: 50 - maxElixir: 100 ---- !u!1 &993534225 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 993534226} - - component: {fileID: 993534227} - m_Layer: 0 - m_Name: Layer - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &993534226 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 993534225} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 10 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &993534227 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 993534225} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 460459d6ac76acd4d872f94cf444e6fa, type: 3} - m_Name: - m_EditorClassIdentifier: - layerNumber0: 5 - layerName0: UI - nest1: - layerNumber1: 0 - layerName1: Default - nest2: - layerNumber2: 4 - layerName2: Water ---- !u!1 &1139446979 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1139446980} - - component: {fileID: 1139446981} - m_Layer: 0 - m_Name: HorizontalLine - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1139446980 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1139446979} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 7 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1139446981 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1139446979} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5cc6d3f8d4a53374887b3d620a6972e3, type: 3} - m_Name: - m_EditorClassIdentifier: - line0: 0 - nest1: - line1: 0 - nest2: - line2: 0 ---- !u!1 &1148579783 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1148579784} - m_Layer: 0 - m_Name: Tests - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1148579784 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1148579783} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 106181863} - - {fileID: 1178133860} - - {fileID: 2043059161} - - {fileID: 2082563173} - - {fileID: 779670087} - - {fileID: 2015414598} - - {fileID: 1622801696} - - {fileID: 1139446980} - - {fileID: 1552114400} - - {fileID: 155697336} - - {fileID: 993534226} - - {fileID: 607441874} - - {fileID: 948946034} - - {fileID: 1747151588} - - {fileID: 1202167595} - - {fileID: 892661555} - - {fileID: 933563385} - - {fileID: 1989156459} - - {fileID: 1194502638} - - {fileID: 1609261820} - - {fileID: 1380469385} - - {fileID: 732714204} - - {fileID: 1784643785} - - {fileID: 572382749} - - {fileID: 114650324} - - {fileID: 1524906391} - - {fileID: 1293624596} - - {fileID: 1871127830} - - {fileID: 237121641} - - {fileID: 1641427334} - - {fileID: 1706612702} - - {fileID: 369789277} - - {fileID: 1463483878} - m_Father: {fileID: 0} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1178133859 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1178133860} - - component: {fileID: 1178133862} - - component: {fileID: 1178133861} - m_Layer: 0 - m_Name: AnimatorParam - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1178133860 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1178133859} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1178133861 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1178133859} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 9bff20ccdde00fc49a62bad6a4ef9982, type: 3} - m_Name: - m_EditorClassIdentifier: - animator0: {fileID: 1178133862} - hash0: 1943738498 - name0: Float0 - nest1: - animator1: {fileID: 1178133862} - hash1: 726565755 - name1: Float0 - nest2: - animator2: {fileID: 1178133862} - hash1: -392453409 - name1: Trigger0 ---- !u!95 &1178133862 -Animator: - serializedVersion: 3 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1178133859} - m_Enabled: 1 - m_Avatar: {fileID: 0} - m_Controller: {fileID: 9100000, guid: 63ee86efd213bf34285c95f33e79dc6c, type: 2} - m_CullingMode: 0 - m_UpdateMode: 0 - m_ApplyRootMotion: 0 - m_LinearVelocityBlending: 0 - m_WarningMessage: - m_HasTransformHierarchy: 1 - m_AllowConstantClipSamplingOptimization: 1 - m_KeepAnimatorControllerStateOnDisable: 0 ---- !u!1 &1194502637 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1194502638} - - component: {fileID: 1194502639} - m_Layer: 0 - m_Name: ShowNonSerializedField - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1194502638 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1194502637} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 18 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1194502639 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1194502637} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 913d67a695253f744bdc776625b9b948, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1202167594 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1202167595} - - component: {fileID: 1202167596} - m_Layer: 0 - m_Name: ResizableTextArea - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1202167595 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1202167594} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 14 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1202167596 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1202167594} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fb4f4bb2e3e063340a24f4bb24528bb5, type: 3} - m_Name: - m_EditorClassIdentifier: - text0: '1 - - 2 - - 3' - nest1: - text1: '1 - - 2 - - 3 - - 4 - - 5' - nest2: - text2: '1 - - 2 - - 3 - - 4 - - 5 - - 6 - - 7' ---- !u!1 &1293624595 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1293624596} - - component: {fileID: 1293624597} - m_Layer: 0 - m_Name: Label - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1293624596 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1293624595} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 26 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1293624597 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1293624595} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 7488af014527ebf42af5c4fc4d5f4f5b, type: 3} - m_Name: - m_EditorClassIdentifier: - int0: 0 - nest1: - int1: 0 - nest2: - vector2: {x: 0.25, y: 0.75} ---- !u!1 &1380469384 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1380469385} - - component: {fileID: 1380469386} - m_Layer: 0 - m_Name: Tag - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1380469385 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1380469384} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 20 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1380469386 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1380469384} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 8bcc0d5613b48fb43bd36c9d37e99900, type: 3} - m_Name: - m_EditorClassIdentifier: - tag0: - nest1: - tag1: MainCamera - nest2: - tag2: Player ---- !u!1 &1444377589 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1444377591} - - component: {fileID: 1444377590} - m_Layer: 0 - m_Name: Directional Light - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!108 &1444377590 -Light: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1444377589} - m_Enabled: 1 - serializedVersion: 10 - m_Type: 1 - m_Shape: 0 - m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} - m_Intensity: 1 - m_Range: 10 - m_SpotAngle: 30 - m_InnerSpotAngle: 21.80208 - m_CookieSize: 10 - m_Shadows: - m_Type: 2 - m_Resolution: -1 - m_CustomResolution: -1 - m_Strength: 1 - m_Bias: 0.05 - m_NormalBias: 0.4 - m_NearPlane: 0.2 - m_CullingMatrixOverride: - e00: 1 - e01: 0 - e02: 0 - e03: 0 - e10: 0 - e11: 1 - e12: 0 - e13: 0 - e20: 0 - e21: 0 - e22: 1 - e23: 0 - e30: 0 - e31: 0 - e32: 0 - e33: 1 - m_UseCullingMatrixOverride: 0 - m_Cookie: {fileID: 0} - m_DrawHalo: 0 - m_Flare: {fileID: 0} - m_RenderMode: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingLayerMask: 1 - m_Lightmapping: 4 - m_LightShadowCasterMode: 0 - m_AreaSize: {x: 1, y: 1} - m_BounceIntensity: 1 - m_ColorTemperature: 6570 - m_UseColorTemperature: 0 - m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} - m_UseBoundingSphereOverride: 0 - m_UseViewFrustumForShadowCasterCull: 1 - m_ShadowRadius: 0 - m_ShadowAngle: 0 ---- !u!4 &1444377591 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1444377589} - m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} - m_LocalPosition: {x: 0, y: 3, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} ---- !u!1 &1463483877 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1463483878} - - component: {fileID: 1463483879} - m_Layer: 0 - m_Name: ValidateInput - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1463483878 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1463483877} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 32 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1463483879 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1463483877} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 94adafcfe59aa344c9b5596b2cc6ecd0, type: 3} - m_Name: - m_EditorClassIdentifier: - int0: 0 - nest1: - int1: 0 - nest2: - int2: 0 - inheritedNest: - int1: 0 - nest2: - int2: 0 ---- !u!1 &1524906390 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1524906391} - - component: {fileID: 1524906392} - - component: {fileID: 1524906393} - m_Layer: 0 - m_Name: ShowIf_HideIf - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1524906391 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1524906390} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 25 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1524906392 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1524906390} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 4fdbfcfbf5b056a4bac491fe21569572, type: 3} - m_Name: - m_EditorClassIdentifier: - show1: 0 - show2: 0 - enum1: 0 - enum2: 0 - showIfAll: - showIfAny: - showIfEnum: - showIfEnumFlag: - showIfEnumFlagMulti: - nest1: - show1: 1 - show2: 0 - enum1: 0 - enum2: 0 - showIfAll: 0 - showIfAny: 0 - showIfEnum: 0 - showIfEnumFlag: 0 - showIfEnumFlagMulti: 0 - nest2: - show1: 1 - show2: 1 - enum1: 0 - enum2: 0 - showIfAll: {x: 0.25, y: 0.75} - showIfAny: {x: 0.25, y: 0.75} - showIfEnum: {x: 0.25, y: 0.75} - showIfEnumFlag: {x: 0, y: 0} - showIfEnumFlagMulti: {x: 0, y: 0} ---- !u!114 &1524906393 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1524906390} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3cf166cb519e666419bb79b0c50c5ee1, type: 3} - m_Name: - m_EditorClassIdentifier: - hide1: 0 - hide2: 0 - enum1: 0 - enum2: 0 - hideIfAll: - hideIfAny: - hideIfEnum: - hideIfEnumFlag: - hideIfEnumFlagMulti: - nest1: - hide1: 1 - hide2: 0 - enum1: 0 - enum2: 0 - hideIfAll: 0 - hideIfAny: 0 - hideIfEnum: 0 - hideIfEnumFlag: 0 - hideIfEnumFlagMulti: 0 - nest2: - hide1: 1 - hide2: 1 - enum1: 0 - enum2: 0 - hideIfAll: {x: 0.25, y: 0.75} - hideIfAny: {x: 0.25, y: 0.75} - hideIfEnum: {x: 0.25, y: 0.75} - hideIfEnumFlag: {x: 0, y: 0} - hideIfEnumFlagMulti: {x: 0, y: 0} ---- !u!1 &1552114399 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1552114400} - - component: {fileID: 1552114401} - m_Layer: 0 - m_Name: InfoBox - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1552114400 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1552114399} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 8 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1552114401 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1552114399} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 0dcb08e489c17644e9eacaa1ec5fe781, type: 3} - m_Name: - m_EditorClassIdentifier: - normal: 0 - nest1: - warning: 0 - nest2: - error: 0 ---- !u!1 &1591883662 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1591883666} - - component: {fileID: 1591883665} - - component: {fileID: 1591883664} - - component: {fileID: 1591883663} - m_Layer: 0 - m_Name: Main Camera - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!81 &1591883663 -AudioListener: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1591883662} - m_Enabled: 1 ---- !u!124 &1591883664 -Behaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1591883662} - m_Enabled: 1 ---- !u!20 &1591883665 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1591883662} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 1 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} - m_projectionMatrixMode: 1 - m_GateFitMode: 2 - m_FOVAxisMode: 0 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.3 - far clip plane: 1000 - field of view: 60 - orthographic: 0 - orthographic size: 5 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: -1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 1 - m_AllowMSAA: 1 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &1591883666 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1591883662} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 1, z: -10} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1609261819 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1609261820} - - component: {fileID: 1609261821} - m_Layer: 0 - m_Name: 'SortingLayer ' - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1609261820 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1609261819} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 19 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1609261821 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1609261819} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 8ed73e666d447964d93c4840f05423dc, type: 3} - m_Name: - m_EditorClassIdentifier: - layerNumber0: 0 - layerName0: Default - nest1: - layerNumber1: 0 - layerName1: Default - nest2: - layerNumber2: 0 - layerName2: Default ---- !u!1 &1622801695 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1622801696} - - component: {fileID: 1622801697} - m_Layer: 0 - m_Name: Expandable - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1622801696 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1622801695} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 6 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1622801697 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1622801695} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 64c4c9aee2b494d44be9bb0b7f12ed7c, type: 3} - m_Name: - m_EditorClassIdentifier: - precedingField: 5 - obj0: {fileID: 11400000, guid: 9cf80899b80517945a2d2390fb48877f, type: 2} - nest1: - obj1: {fileID: 11400000, guid: 9cf80899b80517945a2d2390fb48877f, type: 2} - nest2: - obj2: {fileID: 11400000, guid: 9cf80899b80517945a2d2390fb48877f, type: 2} ---- !u!1 &1641427333 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1641427334} - m_Layer: 0 - m_Name: ===== Validator Attributes ===== - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1641427334 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1641427333} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 29 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1706612701 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1706612702} - - component: {fileID: 1706612703} - m_Layer: 0 - m_Name: MinValue_MaxValue - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1706612702 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1706612701} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 30 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1706612703 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1706612701} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 450a05787c54e6b4fa88ffe223bcee87, type: 3} - m_Name: - m_EditorClassIdentifier: - min0Int: 0 - max0Int: 0 - range01Float: 0 - range01Vector2: {x: 0, y: 0} - range01Vector3: {x: 0, y: 0, z: 0} - range01Vector4: {x: 0, y: 0, z: 0, w: 0} - min0Vector2Int: {x: 0, y: 0} - max100Vector2Int: {x: 0, y: 0} - min0Vector3Int: {x: 0, y: 0, z: 0} - max100Vector3Int: {x: 0, y: 0, z: 0} - nest1: - min0Int: 0 - max0Int: 0 - range01Float: 0 - range01Vector2: {x: 0, y: 0} - range01Vector3: {x: 0, y: 0, z: 0} - range01Vector4: {x: 0, y: 0, z: 0, w: 0} - min0Vector2Int: {x: 0, y: 0} - max100Vector2Int: {x: 0, y: 0} - min0Vector3Int: {x: 0, y: 0, z: 0} - max100Vector3Int: {x: 0, y: 0, z: 0} - nest2: - min0Int: 0 - max0Int: 0 - range01Float: 0 - range01Vector2: {x: 0, y: 0} - range01Vector3: {x: 0, y: 0, z: 0} - range01Vector4: {x: 0, y: 0, z: 0, w: 0} - min0Vector2Int: {x: 0, y: 0} - max100Vector2Int: {x: 0, y: 0} - min0Vector3Int: {x: 0, y: 0, z: 0} - max100Vector3Int: {x: 0, y: 0, z: 0} ---- !u!1 &1747151587 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1747151588} - - component: {fileID: 1747151589} - m_Layer: 0 - m_Name: ReorderableList - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1747151588 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1747151587} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 13 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1747151589 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1747151587} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: c93fde7cd79390148ac576c3a159a77b, type: 3} - m_Name: - m_EditorClassIdentifier: - intArray: 020000000300000001000000 - vectorList: - - {x: 2, y: 2, z: 2} - - {x: 3, y: 3, z: 3} - - {x: 1, y: 1, z: 1} - structList: - - Int: 2 - Float: 2 - Vector: {x: 2, y: 2, z: 2} - - Int: 3 - Float: 3 - Vector: {x: 3, y: 3, z: 3} - - Int: 1 - Float: 1 - Vector: {x: 1, y: 1, z: 1} - gameObjectsList: [] - transformsList: [] - monoBehavioursList: [] ---- !u!1 &1784643784 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1784643785} - - component: {fileID: 1784643786} - m_Layer: 0 - m_Name: BoxGroup - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1784643785 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1784643784} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 22 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1784643786 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1784643784} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3920f5ea384951b4990e4d9e8032d12e, type: 3} - m_Name: - m_EditorClassIdentifier: - int0: 0 - int1: 0 - float0: 0 - float1: 0 - slider0: {x: 0.25, y: 0.75} - slider1: {x: 0.25, y: 0.75} - str0: - str1: - trans0: {fileID: 0} - trans1: {fileID: 0} ---- !u!1 &1871127829 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1871127830} - - component: {fileID: 1871127831} - m_Layer: 0 - m_Name: OnValueChanged - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1871127830 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1871127829} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 27 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1871127831 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1871127829} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: ff1df679e5b32f64bb106752c63933fa, type: 3} - m_Name: - m_EditorClassIdentifier: - int0: 0 - nest1: - int1: 0 - nest2: - int2: 0 ---- !u!1 &1989156458 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1989156459} - - component: {fileID: 1989156460} - m_Layer: 0 - m_Name: ShowNativeProperty - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1989156459 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1989156458} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 17 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1989156460 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1989156458} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: b5a73795d25dd334e90a5a347c6079d9, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &2015414597 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2015414598} - - component: {fileID: 2015414599} - m_Layer: 0 - m_Name: EnumFlags - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &2015414598 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2015414597} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 5 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &2015414599 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2015414597} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 7b7f6b84ce0d7674d8a386fde729279c, type: 3} - m_Name: - m_EditorClassIdentifier: - flags0: 0 - nest1: - flags1: 6 - nest2: - flags2: -1 ---- !u!1 &2043059160 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2043059161} - - component: {fileID: 2043059162} - m_Layer: 0 - m_Name: Button - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &2043059161 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2043059160} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &2043059162 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2043059160} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: b592f12a9f69ac3408f6f870762232c7, type: 3} - m_Name: - m_EditorClassIdentifier: - myInt: 0 ---- !u!1 &2082563172 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2082563173} - - component: {fileID: 2082563174} - m_Layer: 0 - m_Name: CurveRange - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &2082563173 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2082563172} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1148579784} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &2082563174 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2082563172} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 6587b100d001e7e46b9aaae7f1180b40, type: 3} - m_Name: - m_EditorClassIdentifier: - curves: - - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 34 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 34 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 0 - - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 1 - outSlope: 1 - tangentMode: 34 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 1 - outSlope: 1 - tangentMode: 34 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 0 - - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 2 - outSlope: 2 - tangentMode: 0 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 0 - - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 2 - outSlope: 2 - tangentMode: 0 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 0 - - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 0 - outSlope: 0 - tangentMode: 0 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 0 - curve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: -1 - value: -1 - inSlope: 1 - outSlope: 1 - tangentMode: 34 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 1 - outSlope: 1 - tangentMode: 34 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - curve1: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 1 - outSlope: 1 - tangentMode: 34 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 1 - outSlope: 1 - tangentMode: 34 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - curve2: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 1 - outSlope: 1 - tangentMode: 34 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - - serializedVersion: 3 - time: 10 - value: 10 - inSlope: 1 - outSlope: 1 - tangentMode: 34 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - nest1: - curve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 1 - outSlope: 1 - tangentMode: 34 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - - serializedVersion: 3 - time: 1 - value: 1 - inSlope: 1 - outSlope: 1 - tangentMode: 34 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - nest2: - curve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 1 - outSlope: 1 - tangentMode: 34 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - - serializedVersion: 3 - time: 5 - value: 5 - inSlope: 1 - outSlope: 1 - tangentMode: 34 - weightedMode: 0 - inWeight: 0 - outWeight: 0 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 diff --git a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/DemoScene.unity.meta b/Unity/Packages/NaughtyAttributes/Samples/DemoScene/DemoScene.unity.meta deleted file mode 100644 index 819f1ec6..00000000 --- a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/DemoScene.unity.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 07845a5477be2b149a6f1cb32b5a3a5b -timeCreated: 1507998788 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/DemoSceneSettings.lighting b/Unity/Packages/NaughtyAttributes/Samples/DemoScene/DemoSceneSettings.lighting deleted file mode 100644 index a88ae386..00000000 --- a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/DemoSceneSettings.lighting +++ /dev/null @@ -1,63 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!850595691 &4890085278179872738 -LightingSettings: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: DemoSceneSettings - serializedVersion: 2 - m_GIWorkflowMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_RealtimeEnvironmentLighting: 1 - m_BounceScale: 1 - m_AlbedoBoost: 1 - m_IndirectOutputScale: 1 - m_UsingShadowmask: 1 - m_BakeBackend: 0 - m_LightmapMaxSize: 1024 - m_BakeResolution: 40 - m_Padding: 2 - m_TextureCompression: 1 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_ExtractAO: 0 - m_MixedBakeMode: 2 - m_LightmapsBakeMode: 1 - m_FilterMode: 1 - m_LightmapParameters: {fileID: 0} - m_ExportTrainingData: 0 - m_TrainingDataDestination: TrainingData - m_RealtimeResolution: 2 - m_ForceWhiteAlbedo: 0 - m_ForceUpdates: 0 - m_FinalGather: 0 - m_FinalGatherRayCount: 256 - m_FinalGatherFiltering: 1 - m_PVRCulling: 1 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 500 - m_PVREnvironmentSampleCount: 500 - m_PVREnvironmentReferencePointCount: 2048 - m_LightProbeSampleCountMultiplier: 4 - m_PVRBounces: 2 - m_PVRRussianRouletteStartBounce: 2 - m_PVREnvironmentMIS: 0 - m_PVRFilteringMode: 2 - m_PVRDenoiserTypeDirect: 0 - m_PVRDenoiserTypeIndirect: 0 - m_PVRDenoiserTypeAO: 0 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 diff --git a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/DemoSceneSettings.lighting.meta b/Unity/Packages/NaughtyAttributes/Samples/DemoScene/DemoSceneSettings.lighting.meta deleted file mode 100644 index 3af7b5e1..00000000 --- a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/DemoSceneSettings.lighting.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 98ee975b74776234986f4d35f14c4ccc -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets.meta b/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets.meta deleted file mode 100644 index 931e8f80..00000000 --- a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 53a462744f22ca549927c5e6ea797362 -folderAsset: yes -timeCreated: 1509089305 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/Cube.prefab b/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/Cube.prefab deleted file mode 100644 index 64055f67..00000000 --- a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/Cube.prefab +++ /dev/null @@ -1,93 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &1981131855061102 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4344736110947706} - - component: {fileID: 33062901823624450} - - component: {fileID: 65233182844289960} - - component: {fileID: 23099360439063292} - m_Layer: 0 - m_Name: Cube - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4344736110947706 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1981131855061102} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!33 &33062901823624450 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1981131855061102} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!65 &65233182844289960 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1981131855061102} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!23 &23099360439063292 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1981131855061102} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_PreserveUVs: 1 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 diff --git a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/Cube.prefab.meta b/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/Cube.prefab.meta deleted file mode 100644 index f4935078..00000000 --- a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/Cube.prefab.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 7ec354ef3daae7641b7a3fa5e1fe0c81 -timeCreated: 1509089337 -licenseType: Free -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 100100000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/DummyAnimation.anim b/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/DummyAnimation.anim deleted file mode 100644 index 9536161f..00000000 --- a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/DummyAnimation.anim +++ /dev/null @@ -1,169 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!74 &7400000 -AnimationClip: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: DummyAnimation - serializedVersion: 6 - m_Legacy: 0 - m_Compressed: 0 - m_UseHighQualityCurve: 1 - m_RotationCurves: [] - m_CompressedRotationCurves: [] - m_EulerCurves: [] - m_PositionCurves: - - curve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: {x: 0, y: 0, z: 0} - inSlope: {x: 0, y: 0, z: 0} - outSlope: {x: 0, y: 0, z: 0} - tangentMode: 0 - weightedMode: 0 - inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} - outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} - - serializedVersion: 3 - time: 1 - value: {x: 0, y: 0, z: 0} - inSlope: {x: 0, y: 0, z: 0} - outSlope: {x: 0, y: 0, z: 0} - tangentMode: 0 - weightedMode: 0 - inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} - outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334} - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - path: - m_ScaleCurves: [] - m_FloatCurves: [] - m_PPtrCurves: [] - m_SampleRate: 60 - m_WrapMode: 0 - m_Bounds: - m_Center: {x: 0, y: 0, z: 0} - m_Extent: {x: 0, y: 0, z: 0} - m_ClipBindingConstant: - genericBindings: - - serializedVersion: 2 - path: 0 - attribute: 1 - script: {fileID: 0} - typeID: 4 - customType: 0 - isPPtrCurve: 0 - pptrCurveMapping: [] - m_AnimationClipSettings: - serializedVersion: 2 - m_AdditiveReferencePoseClip: {fileID: 0} - m_AdditiveReferencePoseTime: 0 - m_StartTime: 0 - m_StopTime: 1 - m_OrientationOffsetY: 0 - m_Level: 0 - m_CycleOffset: 0 - m_HasAdditiveReferencePose: 0 - m_LoopTime: 1 - m_LoopBlend: 0 - m_LoopBlendOrientation: 0 - m_LoopBlendPositionY: 0 - m_LoopBlendPositionXZ: 0 - m_KeepOriginalOrientation: 0 - m_KeepOriginalPositionY: 1 - m_KeepOriginalPositionXZ: 0 - m_HeightFromFeet: 0 - m_Mirror: 0 - m_EditorCurves: - - curve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 136 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 136 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - attribute: m_LocalPosition.x - path: - classID: 4 - script: {fileID: 0} - - curve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 136 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 136 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - attribute: m_LocalPosition.y - path: - classID: 4 - script: {fileID: 0} - - curve: - serializedVersion: 2 - m_Curve: - - serializedVersion: 3 - time: 0 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 136 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - - serializedVersion: 3 - time: 1 - value: 0 - inSlope: 0 - outSlope: 0 - tangentMode: 136 - weightedMode: 0 - inWeight: 0.33333334 - outWeight: 0.33333334 - m_PreInfinity: 2 - m_PostInfinity: 2 - m_RotationOrder: 4 - attribute: m_LocalPosition.z - path: - classID: 4 - script: {fileID: 0} - m_EulerEditorCurves: [] - m_HasGenericRootTransform: 1 - m_HasMotionFloatCurves: 0 - m_Events: [] diff --git a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/DummyAnimation.anim.meta b/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/DummyAnimation.anim.meta deleted file mode 100644 index d66e3b6c..00000000 --- a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/DummyAnimation.anim.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 31fbd6c92d19aaa48910857627a54a25 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/DummyAnimatorController.controller b/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/DummyAnimatorController.controller deleted file mode 100644 index bb64cae8..00000000 --- a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/DummyAnimatorController.controller +++ /dev/null @@ -1,120 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1102 &-1567792821050049497 -AnimatorState: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: DummyAnimation - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: 31fbd6c92d19aaa48910857627a54a25, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: ---- !u!91 &9100000 -AnimatorController: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: DummyAnimatorController - serializedVersion: 5 - m_AnimatorParameters: - - m_Name: Float0 - m_Type: 1 - m_DefaultFloat: 0 - m_DefaultInt: 0 - m_DefaultBool: 0 - m_Controller: {fileID: 9100000} - - m_Name: Float1 - m_Type: 1 - m_DefaultFloat: 0 - m_DefaultInt: 0 - m_DefaultBool: 0 - m_Controller: {fileID: 9100000} - - m_Name: Int0 - m_Type: 3 - m_DefaultFloat: 0 - m_DefaultInt: 0 - m_DefaultBool: 0 - m_Controller: {fileID: 9100000} - - m_Name: Int1 - m_Type: 3 - m_DefaultFloat: 0 - m_DefaultInt: 0 - m_DefaultBool: 0 - m_Controller: {fileID: 9100000} - - m_Name: Bool0 - m_Type: 4 - m_DefaultFloat: 0 - m_DefaultInt: 0 - m_DefaultBool: 0 - m_Controller: {fileID: 9100000} - - m_Name: Bool1 - m_Type: 4 - m_DefaultFloat: 0 - m_DefaultInt: 0 - m_DefaultBool: 0 - m_Controller: {fileID: 9100000} - - m_Name: Trigger0 - m_Type: 9 - m_DefaultFloat: 0 - m_DefaultInt: 0 - m_DefaultBool: 0 - m_Controller: {fileID: 9100000} - - m_Name: Trigger1 - m_Type: 9 - m_DefaultFloat: 0 - m_DefaultInt: 0 - m_DefaultBool: 0 - m_Controller: {fileID: 9100000} - m_AnimatorLayers: - - serializedVersion: 5 - m_Name: Base Layer - m_StateMachine: {fileID: 945276690032550857} - m_Mask: {fileID: 0} - m_Motions: [] - m_Behaviours: [] - m_BlendingMode: 0 - m_SyncedLayerIndex: -1 - m_DefaultWeight: 0 - m_IKPass: 0 - m_SyncedLayerAffectsTiming: 0 - m_Controller: {fileID: 9100000} ---- !u!1107 &945276690032550857 -AnimatorStateMachine: - serializedVersion: 5 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Base Layer - m_ChildStates: - - serializedVersion: 1 - m_State: {fileID: -1567792821050049497} - m_Position: {x: 390, y: 80, z: 0} - m_ChildStateMachines: [] - m_AnyStateTransitions: [] - m_EntryTransitions: [] - m_StateMachineTransitions: {} - m_StateMachineBehaviours: [] - m_AnyStatePosition: {x: 50, y: 20, z: 0} - m_EntryPosition: {x: 50, y: 120, z: 0} - m_ExitPosition: {x: 800, y: 120, z: 0} - m_ParentStateMachinePosition: {x: 800, y: 20, z: 0} - m_DefaultState: {fileID: -1567792821050049497} diff --git a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/DummyAnimatorController.controller.meta b/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/DummyAnimatorController.controller.meta deleted file mode 100644 index 2ce8a9cc..00000000 --- a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/DummyAnimatorController.controller.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 63ee86efd213bf34285c95f33e79dc6c -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/NaughtyScriptableObject.asset b/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/NaughtyScriptableObject.asset deleted file mode 100644 index 353dc478..00000000 --- a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/NaughtyScriptableObject.asset +++ /dev/null @@ -1,17 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 753bdb918c6038142acddbd7aae6958f, type: 3} - m_Name: NaughtyScriptableObject - m_EditorClassIdentifier: - listA: - - {fileID: 11400000, guid: 149474eb879a6a641b560ca17d48712f, type: 2} - - {fileID: 11400000, guid: 149474eb879a6a641b560ca17d48712f, type: 2} diff --git a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/NaughtyScriptableObject.asset.meta b/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/NaughtyScriptableObject.asset.meta deleted file mode 100644 index dbcb7411..00000000 --- a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/NaughtyScriptableObject.asset.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 9cf80899b80517945a2d2390fb48877f -timeCreated: 1518639643 -licenseType: Free -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/TestScriptableObjectA.asset b/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/TestScriptableObjectA.asset deleted file mode 100644 index 3907d95e..00000000 --- a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/TestScriptableObjectA.asset +++ /dev/null @@ -1,17 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 19472ac11eae27a4b804f354ca7d9c00, type: 3} - m_Name: TestScriptableObjectA - m_EditorClassIdentifier: - listB: - - {fileID: 11400000, guid: 05371aa7630d3ef44ac0106af06cd73c, type: 2} - - {fileID: 11400000, guid: 05371aa7630d3ef44ac0106af06cd73c, type: 2} diff --git a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/TestScriptableObjectA.asset.meta b/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/TestScriptableObjectA.asset.meta deleted file mode 100644 index 3143872e..00000000 --- a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/TestScriptableObjectA.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 149474eb879a6a641b560ca17d48712f -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/TestScriptableObjectB.asset b/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/TestScriptableObjectB.asset deleted file mode 100644 index 79f5b602..00000000 --- a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/TestScriptableObjectB.asset +++ /dev/null @@ -1,15 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: c2b396aeebc9d984da298eee313896bc, type: 3} - m_Name: TestScriptableObjectB - m_EditorClassIdentifier: - slider: {x: 3, y: 7} diff --git a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/TestScriptableObjectB.asset.meta b/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/TestScriptableObjectB.asset.meta deleted file mode 100644 index 7645ee1f..00000000 --- a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/TestScriptableObjectB.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 05371aa7630d3ef44ac0106af06cd73c -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/icon-github.png b/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/icon-github.png deleted file mode 100644 index 228b09acd4249ed0fa5d53891e819ae1be108358..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 29968 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

NnlU$0zi`cjMZF>+M!v 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 diff --git a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/icon-github.png.meta b/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/icon-github.png.meta deleted file mode 100644 index c92bc5d6..00000000 --- a/Unity/Packages/NaughtyAttributes/Samples/DemoScene/TestAssets/icon-github.png.meta +++ /dev/null @@ -1,127 +0,0 @@ -fileFormatVersion: 2 -guid: 005888ede18a58e4db8d069cfa3007cb -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 10 - mipmaps: - mipMapMode: 0 - enableMipMap: 0 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: 1 - wrapV: 1 - wrapW: -1 - nPOTScale: 0 - lightmap: 0 - compressionQuality: 50 - spriteMode: 1 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 1 - spriteTessellationDetail: -1 - textureType: 8 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 1 - - serializedVersion: 3 - buildTarget: Standalone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 1 - - serializedVersion: 3 - buildTarget: Android - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 1 - - serializedVersion: 3 - buildTarget: WebGL - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 1 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: 5e97eb03825dee720800000000000000 - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts.meta b/Unity/Packages/NaughtyAttributes/Scripts.meta deleted file mode 100644 index 238d7e9d..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 66686847ee1fa044bb15dfe473666178 -folderAsset: yes -timeCreated: 1507995546 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Core.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core.meta deleted file mode 100644 index a0554509..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: 1f67e408a6d0adf4ab29d095ccd8b116 -folderAsset: yes -timeCreated: 1507998942 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes.meta deleted file mode 100644 index 132a3c27..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c76425e719cd4424d868674bcfb233f2 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/AllowNestingAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/AllowNestingAttribute.cs deleted file mode 100644 index 841f785e..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/AllowNestingAttribute.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [Obsolete] - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class AllowNestingAttribute : DrawerAttribute - { - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/AllowNestingAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/AllowNestingAttribute.cs.meta deleted file mode 100644 index 343dfece..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/AnimatorParamAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/AnimatorParamAttribute.cs deleted file mode 100644 index 214cd66c..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/AnimatorParamAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/AnimatorParamAttribute.cs.meta deleted file mode 100644 index db61addc..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/CurveRangeAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/CurveRangeAttribute.cs deleted file mode 100644 index 45dcd710..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/CurveRangeAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/CurveRangeAttribute.cs.meta deleted file mode 100644 index 93b60ab0..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/DrawerAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/DrawerAttribute.cs deleted file mode 100644 index c00593fe..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/DrawerAttribute.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; -using UnityEngine; - -namespace NaughtyAttributes -{ - ///

- /// Base class for all drawer attributes - /// - [Obsolete] - public class DrawerAttribute : PropertyAttribute, INaughtyAttribute - { - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/DrawerAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/DrawerAttribute.cs.meta deleted file mode 100644 index aa542159..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/DropdownAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/DropdownAttribute.cs deleted file mode 100644 index ffd32182..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/DropdownAttribute.cs +++ /dev/null @@ -1,60 +0,0 @@ -using System.Collections; -using System; -using System.Collections.Generic; - -namespace NaughtyAttributes -{ - [Obsolete] - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class DropdownAttribute : DrawerAttribute - { - public string ValuesName { get; private set; } - - public DropdownAttribute(string valuesName) - { - ValuesName = valuesName; - } - } - - [Obsolete] - public interface IDropdownList : IEnumerable> - { - } - - [Obsolete] - 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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/DropdownAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/DropdownAttribute.cs.meta deleted file mode 100644 index b25926d7..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/EnumFlagsAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/EnumFlagsAttribute.cs deleted file mode 100644 index affcdc44..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/EnumFlagsAttribute.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [Obsolete] - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class EnumFlagsAttribute : DrawerAttribute - { - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/EnumFlagsAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/EnumFlagsAttribute.cs.meta deleted file mode 100644 index 25a52af4..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/Expandable.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/Expandable.cs deleted file mode 100644 index c5777e51..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/Expandable.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [Obsolete] - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class ExpandableAttribute : DrawerAttribute - { - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/Expandable.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/Expandable.cs.meta deleted file mode 100644 index 8fa04e48..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/HorizontalLineAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/HorizontalLineAttribute.cs deleted file mode 100644 index 50d59a80..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/HorizontalLineAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/HorizontalLineAttribute.cs.meta deleted file mode 100644 index ecfd2587..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/InfoBoxAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/InfoBoxAttribute.cs deleted file mode 100644 index 0b3fb18a..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/InfoBoxAttribute.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - public enum EInfoBoxType - { - Normal, - Warning, - Error - } - - [Obsolete] - [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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/InfoBoxAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/InfoBoxAttribute.cs.meta deleted file mode 100644 index 8748a6e0..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/InputAxisAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/InputAxisAttribute.cs deleted file mode 100644 index 416a1075..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/InputAxisAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/InputAxisAttribute.cs.meta deleted file mode 100644 index da3b2c44..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/LayerAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/LayerAttribute.cs deleted file mode 100644 index 87c1bce8..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/LayerAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/LayerAttribute.cs.meta deleted file mode 100644 index 93d97f73..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/MinMaxSliderAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/MinMaxSliderAttribute.cs deleted file mode 100644 index e4947d32..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/MinMaxSliderAttribute.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [Obsolete] - [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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/MinMaxSliderAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/MinMaxSliderAttribute.cs.meta deleted file mode 100644 index 03e5dcff..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/ProgressBarAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/ProgressBarAttribute.cs deleted file mode 100644 index 72b7ea85..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/ProgressBarAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/ProgressBarAttribute.cs.meta deleted file mode 100644 index 11029f0e..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/ResizableTextAreaAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/ResizableTextAreaAttribute.cs deleted file mode 100644 index 7f008542..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/ResizableTextAreaAttribute.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [Obsolete] - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class ResizableTextAreaAttribute : DrawerAttribute - { - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/ResizableTextAreaAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/ResizableTextAreaAttribute.cs.meta deleted file mode 100644 index cc11d00a..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/SceneAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/SceneAttribute.cs deleted file mode 100644 index 0cc044b7..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/SceneAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/SceneAttribute.cs.meta deleted file mode 100644 index f22649b7..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/ShowAssetPreviewAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/ShowAssetPreviewAttribute.cs deleted file mode 100644 index dd628ffb..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/ShowAssetPreviewAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/ShowAssetPreviewAttribute.cs.meta deleted file mode 100644 index 4893b923..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/SortingLayerAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/SortingLayerAttribute.cs deleted file mode 100644 index 0df4964c..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/SortingLayerAttribute.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class SortingLayerAttribute : DrawerAttribute - { - } -} \ No newline at end of file diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/SortingLayerAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/SortingLayerAttribute.cs.meta deleted file mode 100644 index d4cfaf8b..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/SortingLayerAttribute.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b7564ee02deb3974a85d8617eea098fb -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/TagAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/TagAttribute.cs deleted file mode 100644 index 296d8d35..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/TagAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes/TagAttribute.cs.meta deleted file mode 100644 index 618033c4..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase.meta deleted file mode 100644 index 3096ac43..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 5cf879ed72221e740a7aa02ef9c366a7 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ButtonAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ButtonAttribute.cs deleted file mode 100644 index 0e3c2e54..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ButtonAttribute.cs +++ /dev/null @@ -1,34 +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 - } - - [Obsolete] - [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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ButtonAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ButtonAttribute.cs.meta deleted file mode 100644 index cc7be5c0..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ReorderableListAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ReorderableListAttribute.cs deleted file mode 100644 index ce2585d4..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ReorderableListAttribute.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [Obsolete] - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class ReorderableListAttribute : SpecialCaseDrawerAttribute - { - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ReorderableListAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ReorderableListAttribute.cs.meta deleted file mode 100644 index add3c4a4..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ShowNativePropertyAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ShowNativePropertyAttribute.cs deleted file mode 100644 index 10d03368..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ShowNativePropertyAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ShowNativePropertyAttribute.cs.meta deleted file mode 100644 index 5aed9a27..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ShowNonSerializedFieldAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ShowNonSerializedFieldAttribute.cs deleted file mode 100644 index a4303dd0..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ShowNonSerializedFieldAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/ShowNonSerializedFieldAttribute.cs.meta deleted file mode 100644 index 84d56244..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/SpecialCaseDrawerAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/SpecialCaseDrawerAttribute.cs deleted file mode 100644 index 204f9c6b..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/SpecialCaseDrawerAttribute.cs +++ /dev/null @@ -1,8 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - public class SpecialCaseDrawerAttribute : Attribute, INaughtyAttribute - { - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/SpecialCaseDrawerAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/DrawerAttributes_SpecialCase/SpecialCaseDrawerAttribute.cs.meta deleted file mode 100644 index 3b4bd252..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/INaughtyAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/INaughtyAttribute.cs deleted file mode 100644 index bd16238c..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/INaughtyAttribute.cs +++ /dev/null @@ -1,8 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - public interface INaughtyAttribute - { - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Core/INaughtyAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/INaughtyAttribute.cs.meta deleted file mode 100644 index e2dd9d9b..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes.meta deleted file mode 100644 index 547f24d6..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 64c95d02a2004854585e8d923d6680d0 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/BoxGroupAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/BoxGroupAttribute.cs deleted file mode 100644 index e547624b..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/BoxGroupAttribute.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [Obsolete] - [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/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/BoxGroupAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/BoxGroupAttribute.cs.meta deleted file mode 100644 index d68d8de4..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/DisableIfAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/DisableIfAttribute.cs deleted file mode 100644 index c8fd6e3a..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/DisableIfAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/DisableIfAttribute.cs.meta deleted file mode 100644 index b91dc528..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/EnableIfAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/EnableIfAttribute.cs deleted file mode 100644 index c8014138..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/EnableIfAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/EnableIfAttribute.cs.meta deleted file mode 100644 index f3a696c4..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/EnableIfAttributeBase.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/EnableIfAttributeBase.cs deleted file mode 100644 index cebc67a4..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/EnableIfAttributeBase.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/EnableIfAttributeBase.cs.meta deleted file mode 100644 index 45fd5eb3..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/FoldoutAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/FoldoutAttribute.cs deleted file mode 100644 index 269d34fc..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/FoldoutAttribute.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [Obsolete] - [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/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/FoldoutAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/FoldoutAttribute.cs.meta deleted file mode 100644 index e39736b2..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/HideIfAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/HideIfAttribute.cs deleted file mode 100644 index 63ffb8a6..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/HideIfAttribute.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [Obsolete] - [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/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/HideIfAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/HideIfAttribute.cs.meta deleted file mode 100644 index 888cf89a..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/IGroupAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/IGroupAttribute.cs deleted file mode 100644 index b30ac9a3..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/IGroupAttribute.cs +++ /dev/null @@ -1,8 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes -{ - public interface IGroupAttribute - { - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/IGroupAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/IGroupAttribute.cs.meta deleted file mode 100644 index 47db85d8..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/LabelAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/LabelAttribute.cs deleted file mode 100644 index 6805001a..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/LabelAttribute.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [Obsolete] - [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/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/LabelAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/LabelAttribute.cs.meta deleted file mode 100644 index 9488d54a..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/MetaAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/MetaAttribute.cs deleted file mode 100644 index 9436bf3a..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/MetaAttribute.cs +++ /dev/null @@ -1,8 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - public class MetaAttribute : Attribute, INaughtyAttribute - { - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/MetaAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/MetaAttribute.cs.meta deleted file mode 100644 index a7be1329..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/OnValueChangedAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/OnValueChangedAttribute.cs deleted file mode 100644 index 8358af94..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/OnValueChangedAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/OnValueChangedAttribute.cs.meta deleted file mode 100644 index 4a92c4bf..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/ReadOnlyAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/ReadOnlyAttribute.cs deleted file mode 100644 index ee90d97e..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/ReadOnlyAttribute.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [Obsolete] - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public class ReadOnlyAttribute : MetaAttribute - { - - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/ReadOnlyAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/ReadOnlyAttribute.cs.meta deleted file mode 100644 index 24ec8462..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/ShowIfAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/ShowIfAttribute.cs deleted file mode 100644 index beafed77..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/ShowIfAttribute.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [Obsolete] - [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/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/ShowIfAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/ShowIfAttribute.cs.meta deleted file mode 100644 index 4556ac23..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/ShowIfAttributeBase.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/ShowIfAttributeBase.cs deleted file mode 100644 index 1ead58bb..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/ShowIfAttributeBase.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/MetaAttributes/ShowIfAttributeBase.cs.meta deleted file mode 100644 index e82a9ad3..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/NaughtyAttributes.Core.asmdef b/Unity/Packages/NaughtyAttributes/Scripts/Core/NaughtyAttributes.Core.asmdef deleted file mode 100644 index 569e4e66..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/NaughtyAttributes.Core.asmdef.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/NaughtyAttributes.Core.asmdef.meta deleted file mode 100644 index 731749cb..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/NaughtyAttributes.Core.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 776d03a35f1b52c4a9aed9f56d7b4229 -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Core/Utility.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/Utility.meta deleted file mode 100644 index 80be4768..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/Utility.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 6d61a3a977073c740ae13a3683ed22a1 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Core/Utility/EColor.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/Utility/EColor.cs deleted file mode 100644 index ab50f1d7..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/Utility/EColor.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/Utility/EColor.cs.meta deleted file mode 100644 index 0f32c5e0..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/Utility/EConditionOperator.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/Utility/EConditionOperator.cs deleted file mode 100644 index ed205042..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/Utility/EConditionOperator.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [Obsolete] - public enum EConditionOperator - { - And, - Or - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Core/Utility/EConditionOperator.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/Utility/EConditionOperator.cs.meta deleted file mode 100644 index 60e32647..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes.meta deleted file mode 100644 index d5aba48f..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: bf91d63e37bed3e4cbf75d576fc03a21 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/MaxValueAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/MaxValueAttribute.cs deleted file mode 100644 index 3410e744..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/MaxValueAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/MaxValueAttribute.cs.meta deleted file mode 100644 index b02fdbcf..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/MinValueAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/MinValueAttribute.cs deleted file mode 100644 index 956ca7a7..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/MinValueAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/MinValueAttribute.cs.meta deleted file mode 100644 index 9d901912..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/RequiredAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/RequiredAttribute.cs deleted file mode 100644 index 5a1cc5bd..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/RequiredAttribute.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [Obsolete] - [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/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/RequiredAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/RequiredAttribute.cs.meta deleted file mode 100644 index 7f87cfcb..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/ValidateInputAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/ValidateInputAttribute.cs deleted file mode 100644 index b26d2d70..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/ValidateInputAttribute.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [Obsolete] - [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/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/ValidateInputAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/ValidateInputAttribute.cs.meta deleted file mode 100644 index 0addd1a9..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/ValidatorAttribute.cs b/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/ValidatorAttribute.cs deleted file mode 100644 index 7378e82c..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/ValidatorAttribute.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System; - -namespace NaughtyAttributes -{ - [Obsolete] - public class ValidatorAttribute : Attribute, INaughtyAttribute - { - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/ValidatorAttribute.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Core/ValidatorAttributes/ValidatorAttribute.cs.meta deleted file mode 100644 index f5daea83..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/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/Unity/Packages/NaughtyAttributes/Scripts/Editor.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor.meta deleted file mode 100644 index 8110aa80..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: b76068e69df25a94ab378b0b6829c4f0 -folderAsset: yes -timeCreated: 1507995613 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/DecoratorDrawers.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/DecoratorDrawers.meta deleted file mode 100644 index 79b2c371..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/DecoratorDrawers.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d3041a2296f3b1749b3ef18e695adee4 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/DecoratorDrawers/HorizontalLineDecoratorDrawer.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/DecoratorDrawers/HorizontalLineDecoratorDrawer.cs deleted file mode 100644 index 2953c613..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/DecoratorDrawers/HorizontalLineDecoratorDrawer.cs +++ /dev/null @@ -1,23 +0,0 @@ -using UnityEngine; -using UnityEditor; - -namespace NaughtyAttributes.Editor -{ - [CustomPropertyDrawer(typeof(HorizontalLineAttribute))] - public class HorizontalLineDecoratorDrawer : DecoratorDrawer - { - public override float GetHeight() - { - HorizontalLineAttribute lineAttr = (HorizontalLineAttribute)attribute; - return EditorGUIUtility.singleLineHeight + lineAttr.Height; - } - - public override void OnGUI(Rect position) - { - Rect rect = EditorGUI.IndentedRect(position); - rect.y += EditorGUIUtility.singleLineHeight / 3.0f; - HorizontalLineAttribute lineAttr = (HorizontalLineAttribute)attribute; - NaughtyEditorGUI.HorizontalLine(rect, lineAttr.Height, lineAttr.Color.GetColor()); - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/DecoratorDrawers/HorizontalLineDecoratorDrawer.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/DecoratorDrawers/HorizontalLineDecoratorDrawer.cs.meta deleted file mode 100644 index 719f6d80..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/DecoratorDrawers/HorizontalLineDecoratorDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 3ec99f3a124f20e40b8f5edfeb1ecced -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/DecoratorDrawers/InfoBoxDecoratorDrawer.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/DecoratorDrawers/InfoBoxDecoratorDrawer.cs deleted file mode 100644 index 83cdbd20..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/DecoratorDrawers/InfoBoxDecoratorDrawer.cs +++ /dev/null @@ -1,59 +0,0 @@ -using UnityEditor; -using UnityEngine; - -namespace NaughtyAttributes.Editor -{ - [CustomPropertyDrawer(typeof(InfoBoxAttribute))] - public class InfoBoxDecoratorDrawer : DecoratorDrawer - { - public override float GetHeight() - { - return GetHelpBoxHeight(); - } - - public override void OnGUI(Rect rect) - { - InfoBoxAttribute infoBoxAttribute = (InfoBoxAttribute)attribute; - - float indentLength = NaughtyEditorGUI.GetIndentLength(rect); - Rect infoBoxRect = new Rect( - rect.x + indentLength, - rect.y, - rect.width - indentLength, - GetHelpBoxHeight()); - - DrawInfoBox(infoBoxRect, infoBoxAttribute.Text, infoBoxAttribute.Type); - } - - private float GetHelpBoxHeight() - { - InfoBoxAttribute infoBoxAttribute = (InfoBoxAttribute)attribute; - float minHeight = EditorGUIUtility.singleLineHeight * 2.0f; - float desiredHeight = GUI.skin.box.CalcHeight(new GUIContent(infoBoxAttribute.Text), EditorGUIUtility.currentViewWidth); - float height = Mathf.Max(minHeight, desiredHeight); - - return height; - } - - private void DrawInfoBox(Rect rect, string infoText, EInfoBoxType infoBoxType) - { - MessageType messageType = MessageType.None; - switch (infoBoxType) - { - case EInfoBoxType.Normal: - messageType = MessageType.Info; - break; - - case EInfoBoxType.Warning: - messageType = MessageType.Warning; - break; - - case EInfoBoxType.Error: - messageType = MessageType.Error; - break; - } - - NaughtyEditorGUI.HelpBox(rect, infoText, messageType); - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/DecoratorDrawers/InfoBoxDecoratorDrawer.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/DecoratorDrawers/InfoBoxDecoratorDrawer.cs.meta deleted file mode 100644 index 5f50aced..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/DecoratorDrawers/InfoBoxDecoratorDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: e9c18b0e698717442b7631c5066d667f -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/NaughtyAttributes.Editor.asmdef b/Unity/Packages/NaughtyAttributes/Scripts/Editor/NaughtyAttributes.Editor.asmdef deleted file mode 100644 index e1aafc26..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/NaughtyAttributes.Editor.asmdef +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "NaughtyAttributes.Editor", - "references": [ - "NaughtyAttributes.Core" - ], - "optionalUnityReferences": [], - "includePlatforms": [ - "Editor" - ], - "excludePlatforms": [], - "allowUnsafeCode": false, - "overrideReferences": false, - "precompiledReferences": [], - "autoReferenced": true, - "defineConstraints": [] -} \ No newline at end of file diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/NaughtyAttributes.Editor.asmdef.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/NaughtyAttributes.Editor.asmdef.meta deleted file mode 100644 index 70dc9f26..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/NaughtyAttributes.Editor.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: f88fb04354076c646a4107a491394033 -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/NaughtyInspector.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/NaughtyInspector.cs deleted file mode 100644 index 8e170d65..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/NaughtyInspector.cs +++ /dev/null @@ -1,221 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using System.Reflection; -using UnityEditor; -using UnityEngine; - -namespace NaughtyAttributes.Editor -{ - [CanEditMultipleObjects] - // [CustomEditor(typeof(UnityEngine.Object), true)] - public class NaughtyInspector : UnityEditor.Editor - { - private List _serializedProperties = new List(); - private IEnumerable _nonSerializedFields; - private IEnumerable _nativeProperties; - private IEnumerable _methods; - private Dictionary _foldouts = new Dictionary(); - - protected virtual void OnEnable() - { - _nonSerializedFields = ReflectionUtility.GetAllFields( - target, f => f.GetCustomAttributes(typeof(ShowNonSerializedFieldAttribute), true).Length > 0); - - _nativeProperties = ReflectionUtility.GetAllProperties( - target, p => p.GetCustomAttributes(typeof(ShowNativePropertyAttribute), true).Length > 0); - - _methods = ReflectionUtility.GetAllMethods( - target, m => m.GetCustomAttributes(typeof(ButtonAttribute), true).Length > 0); - } - - protected virtual void OnDisable() - { - ReorderableListPropertyDrawer.Instance.ClearCache(); - } - - public override void OnInspectorGUI() - { - GetSerializedProperties(ref _serializedProperties); - - bool anyNaughtyAttribute = _serializedProperties.Any(p => PropertyUtility.GetAttribute(p) != null); - if (!anyNaughtyAttribute) - { - DrawDefaultInspector(); - } - else - { - DrawSerializedProperties(); - } - - DrawNonSerializedFields(); - DrawNativeProperties(); - DrawButtons(); - } - - protected void GetSerializedProperties(ref List outSerializedProperties) - { - outSerializedProperties.Clear(); - using (var iterator = serializedObject.GetIterator()) - { - if (iterator.NextVisible(true)) - { - do - { - outSerializedProperties.Add(serializedObject.FindProperty(iterator.name)); - } - while (iterator.NextVisible(false)); - } - } - } - - protected void DrawSerializedProperties() - { - serializedObject.Update(); - - // Draw non-grouped serialized properties - foreach (var property in GetNonGroupedProperties(_serializedProperties)) - { - if (property.name.Equals("m_Script", System.StringComparison.Ordinal)) - { - using (new EditorGUI.DisabledScope(disabled: true)) - { - EditorGUILayout.PropertyField(property); - } - } - else - { - NaughtyEditorGUI.PropertyField_Layout(property, includeChildren: true); - } - } - - // Draw grouped serialized properties - foreach (var group in GetGroupedProperties(_serializedProperties)) - { - IEnumerable visibleProperties = group.Where(p => PropertyUtility.IsVisible(p)); - if (!visibleProperties.Any()) - { - continue; - } - - NaughtyEditorGUI.BeginBoxGroup_Layout(group.Key); - foreach (var property in visibleProperties) - { - NaughtyEditorGUI.PropertyField_Layout(property, includeChildren: true); - } - - NaughtyEditorGUI.EndBoxGroup_Layout(); - } - - // Draw foldout serialized properties - foreach (var group in GetFoldoutProperties(_serializedProperties)) - { - IEnumerable visibleProperties = group.Where(p => PropertyUtility.IsVisible(p)); - if (!visibleProperties.Any()) - { - continue; - } - - if (!_foldouts.ContainsKey(group.Key)) - { - _foldouts[group.Key] = new SavedBool($"{target.GetInstanceID()}.{group.Key}", false); - } - - _foldouts[group.Key].Value = EditorGUILayout.Foldout(_foldouts[group.Key].Value, group.Key, true); - if (_foldouts[group.Key].Value) - { - foreach (var property in visibleProperties) - { - NaughtyEditorGUI.PropertyField_Layout(property, true); - } - } - } - - serializedObject.ApplyModifiedProperties(); - } - - protected void DrawNonSerializedFields(bool drawHeader = false) - { - if (_nonSerializedFields.Any()) - { - if (drawHeader) - { - EditorGUILayout.Space(); - EditorGUILayout.LabelField("Non-Serialized Fields", GetHeaderGUIStyle()); - NaughtyEditorGUI.HorizontalLine( - EditorGUILayout.GetControlRect(false), HorizontalLineAttribute.DefaultHeight, HorizontalLineAttribute.DefaultColor.GetColor()); - } - - foreach (var field in _nonSerializedFields) - { - NaughtyEditorGUI.NonSerializedField_Layout(serializedObject.targetObject, field); - } - } - } - - protected void DrawNativeProperties(bool drawHeader = false) - { - if (_nativeProperties.Any()) - { - if (drawHeader) - { - EditorGUILayout.Space(); - EditorGUILayout.LabelField("Native Properties", GetHeaderGUIStyle()); - NaughtyEditorGUI.HorizontalLine( - EditorGUILayout.GetControlRect(false), HorizontalLineAttribute.DefaultHeight, HorizontalLineAttribute.DefaultColor.GetColor()); - } - - foreach (var property in _nativeProperties) - { - NaughtyEditorGUI.NativeProperty_Layout(serializedObject.targetObject, property); - } - } - } - - protected void DrawButtons(bool drawHeader = false) - { - if (_methods.Any()) - { - if (drawHeader) - { - EditorGUILayout.Space(); - EditorGUILayout.LabelField("Buttons", GetHeaderGUIStyle()); - NaughtyEditorGUI.HorizontalLine( - EditorGUILayout.GetControlRect(false), HorizontalLineAttribute.DefaultHeight, HorizontalLineAttribute.DefaultColor.GetColor()); - } - - foreach (var method in _methods) - { - NaughtyEditorGUI.Button(serializedObject.targetObject, method); - } - } - } - - private static IEnumerable GetNonGroupedProperties(IEnumerable properties) - { - return properties.Where(p => PropertyUtility.GetAttribute(p) == null); - } - - private static IEnumerable> GetGroupedProperties(IEnumerable properties) - { - return properties - .Where(p => PropertyUtility.GetAttribute(p) != null) - .GroupBy(p => PropertyUtility.GetAttribute(p).Name); - } - - private static IEnumerable> GetFoldoutProperties(IEnumerable properties) - { - return properties - .Where(p => PropertyUtility.GetAttribute(p) != null) - .GroupBy(p => PropertyUtility.GetAttribute(p).Name); - } - - private static GUIStyle GetHeaderGUIStyle() - { - GUIStyle style = new GUIStyle(EditorStyles.centeredGreyMiniLabel); - style.fontStyle = FontStyle.Bold; - style.alignment = TextAnchor.UpperCenter; - - return style; - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/NaughtyInspector.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/NaughtyInspector.cs.meta deleted file mode 100644 index b63e99f9..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/NaughtyInspector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 1b9b53879f7c93b42835c3ad9e0d0a66 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers.meta deleted file mode 100644 index 7d7dbed8..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 4327d74fca5deaa4c83c483fe468d274 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/AllowNestingPropertyDrawer.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/AllowNestingPropertyDrawer.cs deleted file mode 100644 index 6c391327..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/AllowNestingPropertyDrawer.cs +++ /dev/null @@ -1,16 +0,0 @@ -using UnityEngine; -using UnityEditor; - -namespace NaughtyAttributes.Editor -{ - [CustomPropertyDrawer(typeof(AllowNestingAttribute))] - public class AllowNestingPropertyDrawer : PropertyDrawerBase - { - protected override void OnGUI_Internal(Rect rect, SerializedProperty property, GUIContent label) - { - EditorGUI.BeginProperty(rect, label, property); - EditorGUI.PropertyField(rect, property, label, true); - EditorGUI.EndProperty(); - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/AllowNestingPropertyDrawer.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/AllowNestingPropertyDrawer.cs.meta deleted file mode 100644 index f2f21454..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/AllowNestingPropertyDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a3175e7041b8f4348bd652485a78e7b1 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/AnimatorParamPropertyDrawer.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/AnimatorParamPropertyDrawer.cs deleted file mode 100644 index cf3da38b..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/AnimatorParamPropertyDrawer.cs +++ /dev/null @@ -1,173 +0,0 @@ -using System.Collections.Generic; -using System.Reflection; -using UnityEditor; -using UnityEditor.Animations; -using UnityEngine; - -namespace NaughtyAttributes.Editor -{ - [CustomPropertyDrawer(typeof(AnimatorParamAttribute))] - public class AnimatorParamPropertyDrawer : PropertyDrawerBase - { - private const string InvalidAnimatorControllerWarningMessage = "Target animator controller is null"; - private const string InvalidTypeWarningMessage = "{0} must be an int or a string"; - - protected override float GetPropertyHeight_Internal(SerializedProperty property, GUIContent label) - { - AnimatorParamAttribute animatorParamAttribute = PropertyUtility.GetAttribute(property); - bool validAnimatorController = GetAnimatorController(property, animatorParamAttribute.AnimatorName) != null; - bool validPropertyType = property.propertyType == SerializedPropertyType.Integer || property.propertyType == SerializedPropertyType.String; - - return (validAnimatorController && validPropertyType) - ? GetPropertyHeight(property) - : GetPropertyHeight(property) + GetHelpBoxHeight(); - } - - protected override void OnGUI_Internal(Rect rect, SerializedProperty property, GUIContent label) - { - EditorGUI.BeginProperty(rect, label, property); - - AnimatorParamAttribute animatorParamAttribute = PropertyUtility.GetAttribute(property); - - AnimatorController animatorController = GetAnimatorController(property, animatorParamAttribute.AnimatorName); - if (animatorController == null) - { - DrawDefaultPropertyAndHelpBox(rect, property, InvalidAnimatorControllerWarningMessage, MessageType.Warning); - return; - } - - int parametersCount = animatorController.parameters.Length; - List animatorParameters = new List(parametersCount); - for (int i = 0; i < parametersCount; i++) - { - AnimatorControllerParameter parameter = animatorController.parameters[i]; - if (animatorParamAttribute.AnimatorParamType == null || parameter.type == animatorParamAttribute.AnimatorParamType) - { - animatorParameters.Add(parameter); - } - } - - switch (property.propertyType) - { - case SerializedPropertyType.Integer: - DrawPropertyForInt(rect, property, label, animatorParameters); - break; - case SerializedPropertyType.String: - DrawPropertyForString(rect, property, label, animatorParameters); - break; - default: - DrawDefaultPropertyAndHelpBox(rect, property, string.Format(InvalidTypeWarningMessage, property.name), MessageType.Warning); - break; - } - - EditorGUI.EndProperty(); - } - - private static void DrawPropertyForInt(Rect rect, SerializedProperty property, GUIContent label, List animatorParameters) - { - int paramNameHash = property.intValue; - int index = 0; - - for (int i = 0; i < animatorParameters.Count; i++) - { - if (paramNameHash == animatorParameters[i].nameHash) - { - index = i + 1; // +1 because the first option is reserved for (None) - break; - } - } - - string[] displayOptions = GetDisplayOptions(animatorParameters); - - int newIndex = EditorGUI.Popup(rect, label.text, index, displayOptions); - int newValue = newIndex == 0 ? 0 : animatorParameters[newIndex - 1].nameHash; - - if (property.intValue != newValue) - { - property.intValue = newValue; - } - } - - private static void DrawPropertyForString(Rect rect, SerializedProperty property, GUIContent label, List animatorParameters) - { - string paramName = property.stringValue; - int index = 0; - - for (int i = 0; i < animatorParameters.Count; i++) - { - if (paramName.Equals(animatorParameters[i].name, System.StringComparison.Ordinal)) - { - index = i + 1; // +1 because the first option is reserved for (None) - break; - } - } - - string[] displayOptions = GetDisplayOptions(animatorParameters); - - int newIndex = EditorGUI.Popup(rect, label.text, index, displayOptions); - string newValue = newIndex == 0 ? null : animatorParameters[newIndex - 1].name; - - if (!property.stringValue.Equals(newValue, System.StringComparison.Ordinal)) - { - property.stringValue = newValue; - } - } - - private static string[] GetDisplayOptions(List animatorParams) - { - string[] displayOptions = new string[animatorParams.Count + 1]; - displayOptions[0] = "(None)"; - - for (int i = 0; i < animatorParams.Count; i++) - { - displayOptions[i + 1] = animatorParams[i].name; - } - - return displayOptions; - } - - private static AnimatorController GetAnimatorController(SerializedProperty property, string animatorName) - { - object target = PropertyUtility.GetTargetObjectWithProperty(property); - - FieldInfo animatorFieldInfo = ReflectionUtility.GetField(target, animatorName); - if (animatorFieldInfo != null && - animatorFieldInfo.FieldType == typeof(Animator)) - { - Animator animator = animatorFieldInfo.GetValue(target) as Animator; - if (animator != null) - { - AnimatorController animatorController = animator.runtimeAnimatorController as AnimatorController; - return animatorController; - } - } - - PropertyInfo animatorPropertyInfo = ReflectionUtility.GetProperty(target, animatorName); - if (animatorPropertyInfo != null && - animatorPropertyInfo.PropertyType == typeof(Animator)) - { - Animator animator = animatorPropertyInfo.GetValue(target) as Animator; - if (animator != null) - { - AnimatorController animatorController = animator.runtimeAnimatorController as AnimatorController; - return animatorController; - } - } - - MethodInfo animatorGetterMethodInfo = ReflectionUtility.GetMethod(target, animatorName); - if (animatorGetterMethodInfo != null && - animatorGetterMethodInfo.ReturnType == typeof(Animator) && - animatorGetterMethodInfo.GetParameters().Length == 0) - { - Animator animator = animatorGetterMethodInfo.Invoke(target, null) as Animator; - if (animator != null) - { - AnimatorController animatorController = animator.runtimeAnimatorController as AnimatorController; - return animatorController; - } - } - - return null; - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/AnimatorParamPropertyDrawer.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/AnimatorParamPropertyDrawer.cs.meta deleted file mode 100644 index 4c3a7e64..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/AnimatorParamPropertyDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 98ff8cb1bcefae740a68d9a5c5ee3563 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/CurveRangePropertyDrawer.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/CurveRangePropertyDrawer.cs deleted file mode 100644 index 8f5a6c5d..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/CurveRangePropertyDrawer.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine; -using UnityEditor; - -namespace NaughtyAttributes.Editor -{ - [CustomPropertyDrawer(typeof(CurveRangeAttribute))] - public class CurveRangePropertyDrawer : PropertyDrawerBase - { - protected override float GetPropertyHeight_Internal(SerializedProperty property, GUIContent label) - { - float propertyHeight = property.propertyType == SerializedPropertyType.AnimationCurve - ? GetPropertyHeight(property) - : GetPropertyHeight(property) + GetHelpBoxHeight(); - - return propertyHeight; - } - - protected override void OnGUI_Internal(Rect rect, SerializedProperty property, GUIContent label) - { - EditorGUI.BeginProperty(rect, label, property); - - // Check user error - if (property.propertyType != SerializedPropertyType.AnimationCurve) - { - string message = string.Format("Field {0} is not an AnimationCurve", property.name); - DrawDefaultPropertyAndHelpBox(rect, property, message, MessageType.Warning); - return; - } - - var curveRangeAttribute = (CurveRangeAttribute)attribute; - var curveRanges = new Rect( - curveRangeAttribute.Min.x, - curveRangeAttribute.Min.y, - curveRangeAttribute.Max.x - curveRangeAttribute.Min.x, - curveRangeAttribute.Max.y - curveRangeAttribute.Min.y); - - EditorGUI.CurveField( - rect, - property, - curveRangeAttribute.Color == EColor.Clear ? Color.green : curveRangeAttribute.Color.GetColor(), - curveRanges, - label); - - EditorGUI.EndProperty(); - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/CurveRangePropertyDrawer.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/CurveRangePropertyDrawer.cs.meta deleted file mode 100644 index adea11ef..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/CurveRangePropertyDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 798b8c99fbc072a4b83ee387e472a2bd -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/DropdownPropertyDrawer.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/DropdownPropertyDrawer.cs deleted file mode 100644 index 90184868..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/DropdownPropertyDrawer.cs +++ /dev/null @@ -1,177 +0,0 @@ -using UnityEngine; -using UnityEditor; -using System.Collections; -using System.Reflection; -using System; -using System.Collections.Generic; - -namespace NaughtyAttributes.Editor -{ - [CustomPropertyDrawer(typeof(DropdownAttribute))] - public class DropdownPropertyDrawer : PropertyDrawerBase - { - protected override float GetPropertyHeight_Internal(SerializedProperty property, GUIContent label) - { - DropdownAttribute dropdownAttribute = (DropdownAttribute)attribute; - object values = GetValues(property, dropdownAttribute.ValuesName); - FieldInfo fieldInfo = ReflectionUtility.GetField(PropertyUtility.GetTargetObjectWithProperty(property), property.name); - - float propertyHeight = AreValuesValid(values, fieldInfo) - ? GetPropertyHeight(property) - : GetPropertyHeight(property) + GetHelpBoxHeight(); - - return propertyHeight; - } - - protected override void OnGUI_Internal(Rect rect, SerializedProperty property, GUIContent label) - { - EditorGUI.BeginProperty(rect, label, property); - - DropdownAttribute dropdownAttribute = (DropdownAttribute)attribute; - object target = PropertyUtility.GetTargetObjectWithProperty(property); - - object valuesObject = GetValues(property, dropdownAttribute.ValuesName); - FieldInfo dropdownField = ReflectionUtility.GetField(target, property.name); - - if (AreValuesValid(valuesObject, dropdownField)) - { - if (valuesObject is IList && dropdownField.FieldType == GetElementType(valuesObject)) - { - // Selected value - object selectedValue = dropdownField.GetValue(target); - - // Values and display options - IList valuesList = (IList)valuesObject; - object[] values = new object[valuesList.Count]; - string[] displayOptions = new string[valuesList.Count]; - - for (int i = 0; i < values.Length; i++) - { - object value = valuesList[i]; - values[i] = value; - displayOptions[i] = value == null ? "" : value.ToString(); - } - - // Selected value index - int selectedValueIndex = Array.IndexOf(values, selectedValue); - if (selectedValueIndex < 0) - { - selectedValueIndex = 0; - } - - NaughtyEditorGUI.Dropdown( - rect, property.serializedObject, target, dropdownField, label.text, selectedValueIndex, values, displayOptions); - } - else if (valuesObject is IDropdownList) - { - // Current value - object selectedValue = dropdownField.GetValue(target); - - // Current value index, values and display options - int index = -1; - int selectedValueIndex = -1; - List values = new List(); - List displayOptions = new List(); - IDropdownList dropdown = (IDropdownList)valuesObject; - - using (IEnumerator> dropdownEnumerator = dropdown.GetEnumerator()) - { - while (dropdownEnumerator.MoveNext()) - { - index++; - - KeyValuePair current = dropdownEnumerator.Current; - if (current.Value?.Equals(selectedValue) == true) - { - selectedValueIndex = index; - } - - values.Add(current.Value); - - if (current.Key == null) - { - displayOptions.Add(""); - } - else if (string.IsNullOrWhiteSpace(current.Key)) - { - displayOptions.Add(""); - } - else - { - displayOptions.Add(current.Key); - } - } - } - - if (selectedValueIndex < 0) - { - selectedValueIndex = 0; - } - - NaughtyEditorGUI.Dropdown( - rect, property.serializedObject, target, dropdownField, label.text, selectedValueIndex, values.ToArray(), displayOptions.ToArray()); - } - } - else - { - string message = string.Format("Invalid values with name '{0}' provided to '{1}'. Either the values name is incorrect or the types of the target field and the values field/property/method don't match", - dropdownAttribute.ValuesName, dropdownAttribute.GetType().Name); - - DrawDefaultPropertyAndHelpBox(rect, property, message, MessageType.Warning); - } - - EditorGUI.EndProperty(); - } - - private object GetValues(SerializedProperty property, string valuesName) - { - object target = PropertyUtility.GetTargetObjectWithProperty(property); - - FieldInfo valuesFieldInfo = ReflectionUtility.GetField(target, valuesName); - if (valuesFieldInfo != null) - { - return valuesFieldInfo.GetValue(target); - } - - PropertyInfo valuesPropertyInfo = ReflectionUtility.GetProperty(target, valuesName); - if (valuesPropertyInfo != null) - { - return valuesPropertyInfo.GetValue(target); - } - - MethodInfo methodValuesInfo = ReflectionUtility.GetMethod(target, valuesName); - if (methodValuesInfo != null && - methodValuesInfo.ReturnType != typeof(void) && - methodValuesInfo.GetParameters().Length == 0) - { - return methodValuesInfo.Invoke(target, null); - } - - return null; - } - - private bool AreValuesValid(object values, FieldInfo dropdownField) - { - if (values == null || dropdownField == null) - { - return false; - } - - if ((values is IList && dropdownField.FieldType == GetElementType(values)) || - (values is IDropdownList)) - { - return true; - } - - return false; - } - - private Type GetElementType(object values) - { - Type valuesType = values.GetType(); - Type elementType = ReflectionUtility.GetListElementType(valuesType); - - return elementType; - } - } -} \ No newline at end of file diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/DropdownPropertyDrawer.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/DropdownPropertyDrawer.cs.meta deleted file mode 100644 index fecae2ce..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/DropdownPropertyDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: dd080b36769bcd94d909fc0431cf25e0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/EnumFlagsPropertyDrawer.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/EnumFlagsPropertyDrawer.cs deleted file mode 100644 index df2da6d1..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/EnumFlagsPropertyDrawer.cs +++ /dev/null @@ -1,38 +0,0 @@ -using UnityEngine; -using UnityEditor; -using System; - -namespace NaughtyAttributes.Editor -{ - [CustomPropertyDrawer(typeof(EnumFlagsAttribute))] - public class EnumFlagsPropertyDrawer : PropertyDrawerBase - { - protected override float GetPropertyHeight_Internal(SerializedProperty property, GUIContent label) - { - Enum targetEnum = PropertyUtility.GetTargetObjectOfProperty(property) as Enum; - - return (targetEnum != null) - ? GetPropertyHeight(property) - : GetPropertyHeight(property) + GetHelpBoxHeight(); - } - - protected override void OnGUI_Internal(Rect rect, SerializedProperty property, GUIContent label) - { - EditorGUI.BeginProperty(rect, label, property); - - Enum targetEnum = PropertyUtility.GetTargetObjectOfProperty(property) as Enum; - if (targetEnum != null) - { - Enum enumNew = EditorGUI.EnumFlagsField(rect, label.text, targetEnum); - property.intValue = (int)Convert.ChangeType(enumNew, targetEnum.GetType()); - } - else - { - string message = attribute.GetType().Name + " can be used only on enums"; - DrawDefaultPropertyAndHelpBox(rect, property, message, MessageType.Warning); - } - - EditorGUI.EndProperty(); - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/EnumFlagsPropertyDrawer.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/EnumFlagsPropertyDrawer.cs.meta deleted file mode 100644 index c0081d29..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/EnumFlagsPropertyDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b750e1461c1126d4399459b90b31e75e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ExpandablePropertyDrawer.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ExpandablePropertyDrawer.cs deleted file mode 100644 index 705e17a6..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ExpandablePropertyDrawer.cs +++ /dev/null @@ -1,195 +0,0 @@ -using UnityEngine; -using UnityEditor; - -namespace NaughtyAttributes.Editor -{ - [CustomPropertyDrawer(typeof(ExpandableAttribute))] - public class ExpandablePropertyDrawer : PropertyDrawerBase - { - protected override float GetPropertyHeight_Internal(SerializedProperty property, GUIContent label) - { - if (property.objectReferenceValue == null) - { - return GetPropertyHeight(property); - } - - System.Type propertyType = PropertyUtility.GetPropertyType(property); - if (typeof(ScriptableObject).IsAssignableFrom(propertyType)) - { - ScriptableObject scriptableObject = property.objectReferenceValue as ScriptableObject; - if (scriptableObject == null) - { - return GetPropertyHeight(property); - } - - if (property.isExpanded) - { - using (SerializedObject serializedObject = new SerializedObject(scriptableObject)) - { - float totalHeight = EditorGUIUtility.singleLineHeight; - - using (var iterator = serializedObject.GetIterator()) - { - if (iterator.NextVisible(true)) - { - do - { - SerializedProperty childProperty = serializedObject.FindProperty(iterator.name); - if (childProperty.name.Equals("m_Script", System.StringComparison.Ordinal)) - { - continue; - } - - bool visible = PropertyUtility.IsVisible(childProperty); - if (!visible) - { - continue; - } - - float height = GetPropertyHeight(childProperty); - totalHeight += height; - } - while (iterator.NextVisible(false)); - } - } - - totalHeight += EditorGUIUtility.standardVerticalSpacing; - return totalHeight; - } - } - else - { - return GetPropertyHeight(property); - } - } - else - { - return GetPropertyHeight(property) + GetHelpBoxHeight(); - } - } - - protected override void OnGUI_Internal(Rect rect, SerializedProperty property, GUIContent label) - { - EditorGUI.BeginProperty(rect, label, property); - - if (property.objectReferenceValue == null) - { - EditorGUI.PropertyField(rect, property, label, false); - } - else - { - System.Type propertyType = PropertyUtility.GetPropertyType(property); - if (typeof(ScriptableObject).IsAssignableFrom(propertyType)) - { - ScriptableObject scriptableObject = property.objectReferenceValue as ScriptableObject; - if (scriptableObject == null) - { - EditorGUI.PropertyField(rect, property, label, false); - } - else - { - // Draw a foldout - Rect foldoutRect = new Rect() - { - x = rect.x, - y = rect.y, - width = EditorGUIUtility.labelWidth, - height = EditorGUIUtility.singleLineHeight - }; - - property.isExpanded = EditorGUI.Foldout(foldoutRect, property.isExpanded, label, toggleOnLabelClick: true); - - // Draw the scriptable object field - Rect propertyRect = new Rect() - { - x = rect.x, - y = rect.y, - width = rect.width, - height = EditorGUIUtility.singleLineHeight - }; - - EditorGUI.PropertyField(propertyRect, property, label, false); - - // Draw the child properties - if (property.isExpanded) - { - DrawChildProperties(rect, property); - } - } - } - else - { - string message = $"{typeof(ExpandableAttribute).Name} can only be used on scriptable objects"; - DrawDefaultPropertyAndHelpBox(rect, property, message, MessageType.Warning); - } - } - - property.serializedObject.ApplyModifiedProperties(); - EditorGUI.EndProperty(); - } - - private void DrawChildProperties(Rect rect, SerializedProperty property) - { - ScriptableObject scriptableObject = property.objectReferenceValue as ScriptableObject; - if (scriptableObject == null) - { - return; - } - - Rect boxRect = new Rect() - { - x = 0.0f, - y = rect.y + EditorGUIUtility.singleLineHeight, - width = rect.width * 2.0f, - height = rect.height - EditorGUIUtility.singleLineHeight - }; - - GUI.Box(boxRect, GUIContent.none); - - using (new EditorGUI.IndentLevelScope()) - { - SerializedObject serializedObject = new SerializedObject(scriptableObject); - serializedObject.Update(); - - using (var iterator = serializedObject.GetIterator()) - { - float yOffset = EditorGUIUtility.singleLineHeight; - - if (iterator.NextVisible(true)) - { - do - { - SerializedProperty childProperty = serializedObject.FindProperty(iterator.name); - if (childProperty.name.Equals("m_Script", System.StringComparison.Ordinal)) - { - continue; - } - - bool visible = PropertyUtility.IsVisible(childProperty); - if (!visible) - { - continue; - } - - float childHeight = GetPropertyHeight(childProperty); - Rect childRect = new Rect() - { - x = rect.x, - y = rect.y + yOffset, - width = rect.width, - height = childHeight - }; - - NaughtyEditorGUI.PropertyField(childRect, childProperty, true); - - yOffset += childHeight; - } - while (iterator.NextVisible(false)); - } - } - - serializedObject.ApplyModifiedProperties(); - } - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ExpandablePropertyDrawer.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ExpandablePropertyDrawer.cs.meta deleted file mode 100644 index d5925fe0..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ExpandablePropertyDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: d1ddb7194615bdc4e8b2088c8d165d8b -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/InputAxisPropertyDrawer.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/InputAxisPropertyDrawer.cs deleted file mode 100644 index 1fbcfebe..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/InputAxisPropertyDrawer.cs +++ /dev/null @@ -1,77 +0,0 @@ -using System.Collections.Generic; -using System.IO; -using System.Linq; -using UnityEditor; -using UnityEngine; - -namespace NaughtyAttributes.Editor -{ - [CustomPropertyDrawer(typeof(InputAxisAttribute))] - public class InputAxisPropertyDrawer : PropertyDrawerBase - { - private static readonly string AssetPath = Path.Combine("ProjectSettings", "InputManager.asset"); - private const string AxesPropertyPath = "m_Axes"; - private const string NamePropertyPath = "m_Name"; - - protected override float GetPropertyHeight_Internal(SerializedProperty property, GUIContent label) - { - return (property.propertyType == SerializedPropertyType.String) - ? GetPropertyHeight(property) - : GetPropertyHeight(property) + GetHelpBoxHeight(); - } - - protected override void OnGUI_Internal(Rect rect, SerializedProperty property, GUIContent label) - { - EditorGUI.BeginProperty(rect, label, property); - - if (property.propertyType == SerializedPropertyType.String) - { - var inputManagerAsset = AssetDatabase.LoadAssetAtPath(AssetPath, typeof(object)); - var inputManager = new SerializedObject(inputManagerAsset); - - var axesProperty = inputManager.FindProperty(AxesPropertyPath); - var axesSet = new HashSet(); - axesSet.Add("(None)"); - - for (var i = 0; i < axesProperty.arraySize; i++) - { - var axis = axesProperty.GetArrayElementAtIndex(i).FindPropertyRelative(NamePropertyPath).stringValue; - axesSet.Add(axis); - } - - var axes = axesSet.ToArray(); - - string propertyString = property.stringValue; - int index = 0; - // check if there is an entry that matches the entry and get the index - // we skip index 0 as that is a special custom case - for (int i = 1; i < axes.Length; i++) - { - if (axes[i].Equals(propertyString, System.StringComparison.Ordinal)) - { - index = i; - break; - } - } - - // Draw the popup box with the current selected index - int newIndex = EditorGUI.Popup(rect, label.text, index, axes); - - // Adjust the actual string value of the property based on the selection - string newValue = newIndex > 0 ? axes[newIndex] : string.Empty; - - if (!property.stringValue.Equals(newValue, System.StringComparison.Ordinal)) - { - property.stringValue = newValue; - } - } - else - { - string message = string.Format("{0} supports only string fields", typeof(InputAxisAttribute).Name); - DrawDefaultPropertyAndHelpBox(rect, property, message, MessageType.Warning); - } - - EditorGUI.EndProperty(); - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/InputAxisPropertyDrawer.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/InputAxisPropertyDrawer.cs.meta deleted file mode 100644 index 08f8f461..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/InputAxisPropertyDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 0de9d3dfe2d466a458be838edf361645 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/LayerPropertyDrawer.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/LayerPropertyDrawer.cs deleted file mode 100644 index d789eb92..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/LayerPropertyDrawer.cs +++ /dev/null @@ -1,88 +0,0 @@ -using UnityEngine; -using UnityEditor; -using System; - -namespace NaughtyAttributes.Editor -{ - [CustomPropertyDrawer(typeof(LayerAttribute))] - public class LayerPropertyDrawer : PropertyDrawerBase - { - private const string TypeWarningMessage = "{0} must be an int or a string"; - - protected override float GetPropertyHeight_Internal(SerializedProperty property, GUIContent label) - { - bool validPropertyType = property.propertyType == SerializedPropertyType.String || property.propertyType == SerializedPropertyType.Integer; - - return validPropertyType - ? GetPropertyHeight(property) - : GetPropertyHeight(property) + GetHelpBoxHeight(); - } - - protected override void OnGUI_Internal(Rect rect, SerializedProperty property, GUIContent label) - { - EditorGUI.BeginProperty(rect, label, property); - - switch (property.propertyType) - { - case SerializedPropertyType.String: - DrawPropertyForString(rect, property, label, GetLayers()); - break; - case SerializedPropertyType.Integer: - DrawPropertyForInt(rect, property, label, GetLayers()); - break; - default: - string message = string.Format(TypeWarningMessage, property.name); - DrawDefaultPropertyAndHelpBox(rect, property, message, MessageType.Warning); - break; - } - - EditorGUI.EndProperty(); - } - - private string[] GetLayers() - { - return UnityEditorInternal.InternalEditorUtility.layers; - } - - private static void DrawPropertyForString(Rect rect, SerializedProperty property, GUIContent label, string[] layers) - { - int index = IndexOf(layers, property.stringValue); - int newIndex = EditorGUI.Popup(rect, label.text, index, layers); - string newLayer = layers[newIndex]; - - if (!property.stringValue.Equals(newLayer, StringComparison.Ordinal)) - { - property.stringValue = layers[newIndex]; - } - } - - private static void DrawPropertyForInt(Rect rect, SerializedProperty property, GUIContent label, string[] layers) - { - int index = 0; - string layerName = LayerMask.LayerToName(property.intValue); - for (int i = 0; i < layers.Length; i++) - { - if (layerName.Equals(layers[i], StringComparison.Ordinal)) - { - index = i; - break; - } - } - - int newIndex = EditorGUI.Popup(rect, label.text, index, layers); - string newLayerName = layers[newIndex]; - int newLayerNumber = LayerMask.NameToLayer(newLayerName); - - if (property.intValue != newLayerNumber) - { - property.intValue = newLayerNumber; - } - } - - private static int IndexOf(string[] layers, string layer) - { - var index = Array.IndexOf(layers, layer); - return Mathf.Clamp(index, 0, layers.Length - 1); - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/LayerPropertyDrawer.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/LayerPropertyDrawer.cs.meta deleted file mode 100644 index 4b2ac86c..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/LayerPropertyDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7278ba0893ab7d940b5f944e5b1cf1a7 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/MinMaxSliderPropertyDrawer.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/MinMaxSliderPropertyDrawer.cs deleted file mode 100644 index 7866c569..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/MinMaxSliderPropertyDrawer.cs +++ /dev/null @@ -1,108 +0,0 @@ -using UnityEditor; -using UnityEngine; - -namespace NaughtyAttributes.Editor -{ - [CustomPropertyDrawer(typeof(MinMaxSliderAttribute))] - public class MinMaxSliderPropertyDrawer : PropertyDrawerBase - { - protected override float GetPropertyHeight_Internal(SerializedProperty property, GUIContent label) - { - return (property.propertyType == SerializedPropertyType.Vector2 || property.propertyType == SerializedPropertyType.Vector2Int) - ? GetPropertyHeight(property) - : GetPropertyHeight(property) + GetHelpBoxHeight(); - } - - protected override void OnGUI_Internal(Rect rect, SerializedProperty property, GUIContent label) - { - EditorGUI.BeginProperty(rect, label, property); - - MinMaxSliderAttribute minMaxSliderAttribute = (MinMaxSliderAttribute)attribute; - - if (property.propertyType == SerializedPropertyType.Vector2 || property.propertyType == SerializedPropertyType.Vector2Int) - { - EditorGUI.BeginProperty(rect, label, property); - - float indentLength = NaughtyEditorGUI.GetIndentLength(rect); - float labelWidth = EditorGUIUtility.labelWidth + NaughtyEditorGUI.HorizontalSpacing; - float floatFieldWidth = EditorGUIUtility.fieldWidth; - float sliderWidth = rect.width - labelWidth - 2.0f * floatFieldWidth; - float sliderPadding = 5.0f; - - Rect labelRect = new Rect( - rect.x, - rect.y, - labelWidth, - rect.height); - - Rect sliderRect = new Rect( - rect.x + labelWidth + floatFieldWidth + sliderPadding - indentLength, - rect.y, - sliderWidth - 2.0f * sliderPadding + indentLength, - rect.height); - - Rect minFloatFieldRect = new Rect( - rect.x + labelWidth - indentLength, - rect.y, - floatFieldWidth + indentLength, - rect.height); - - Rect maxFloatFieldRect = new Rect( - rect.x + labelWidth + floatFieldWidth + sliderWidth - indentLength, - rect.y, - floatFieldWidth + indentLength, - rect.height); - - // Draw the label - EditorGUI.LabelField(labelRect, label.text); - - // Draw the slider - EditorGUI.BeginChangeCheck(); - - if (property.propertyType == SerializedPropertyType.Vector2) - { - Vector2 sliderValue = property.vector2Value; - EditorGUI.MinMaxSlider(sliderRect, ref sliderValue.x, ref sliderValue.y, minMaxSliderAttribute.MinValue, minMaxSliderAttribute.MaxValue); - - sliderValue.x = EditorGUI.FloatField(minFloatFieldRect, sliderValue.x); - sliderValue.x = Mathf.Clamp(sliderValue.x, minMaxSliderAttribute.MinValue, Mathf.Min(minMaxSliderAttribute.MaxValue, sliderValue.y)); - - sliderValue.y = EditorGUI.FloatField(maxFloatFieldRect, sliderValue.y); - sliderValue.y = Mathf.Clamp(sliderValue.y, Mathf.Max(minMaxSliderAttribute.MinValue, sliderValue.x), minMaxSliderAttribute.MaxValue); - - if (EditorGUI.EndChangeCheck()) - { - property.vector2Value = sliderValue; - } - } - else if (property.propertyType == SerializedPropertyType.Vector2Int) - { - Vector2Int sliderValue = property.vector2IntValue; - float xValue = sliderValue.x; - float yValue = sliderValue.y; - EditorGUI.MinMaxSlider(sliderRect, ref xValue, ref yValue, minMaxSliderAttribute.MinValue, minMaxSliderAttribute.MaxValue); - - sliderValue.x = EditorGUI.IntField(minFloatFieldRect, (int)xValue); - sliderValue.x = (int)Mathf.Clamp(sliderValue.x, minMaxSliderAttribute.MinValue, Mathf.Min(minMaxSliderAttribute.MaxValue, sliderValue.y)); - - sliderValue.y = EditorGUI.IntField(maxFloatFieldRect, (int)yValue); - sliderValue.y = (int)Mathf.Clamp(sliderValue.y, Mathf.Max(minMaxSliderAttribute.MinValue, sliderValue.x), minMaxSliderAttribute.MaxValue); - - if (EditorGUI.EndChangeCheck()) - { - property.vector2IntValue = sliderValue; - } - } - - EditorGUI.EndProperty(); - } - else - { - string message = minMaxSliderAttribute.GetType().Name + " can be used only on Vector2 or Vector2Int fields"; - DrawDefaultPropertyAndHelpBox(rect, property, message, MessageType.Warning); - } - - EditorGUI.EndProperty(); - } - } -} \ No newline at end of file diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/MinMaxSliderPropertyDrawer.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/MinMaxSliderPropertyDrawer.cs.meta deleted file mode 100644 index 4613ffec..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/MinMaxSliderPropertyDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 27011af81554b5b4489b155f09275475 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ProgressBarPropertyDrawer.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ProgressBarPropertyDrawer.cs deleted file mode 100644 index 84d88233..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ProgressBarPropertyDrawer.cs +++ /dev/null @@ -1,154 +0,0 @@ -using UnityEngine; -using UnityEditor; -using System.Reflection; - -namespace NaughtyAttributes.Editor -{ - [CustomPropertyDrawer(typeof(ProgressBarAttribute))] - public class ProgressBarPropertyDrawer : PropertyDrawerBase - { - protected override float GetPropertyHeight_Internal(SerializedProperty property, GUIContent label) - { - ProgressBarAttribute progressBarAttribute = PropertyUtility.GetAttribute(property); - var maxValue = GetMaxValue(property, progressBarAttribute); - - return IsNumber(property) && IsNumber(maxValue) - ? GetPropertyHeight(property) - : GetPropertyHeight(property) + GetHelpBoxHeight(); - } - - protected override void OnGUI_Internal(Rect rect, SerializedProperty property, GUIContent label) - { - EditorGUI.BeginProperty(rect, label, property); - - if (!IsNumber(property)) - { - string message = string.Format("Field {0} is not a number", property.name); - DrawDefaultPropertyAndHelpBox(rect, property, message, MessageType.Warning); - return; - } - - ProgressBarAttribute progressBarAttribute = PropertyUtility.GetAttribute(property); - var value = property.propertyType == SerializedPropertyType.Integer ? property.intValue : property.floatValue; - var valueFormatted = property.propertyType == SerializedPropertyType.Integer ? value.ToString() : string.Format("{0:0.00}", value); - var maxValue = GetMaxValue(property, progressBarAttribute); - - if (maxValue != null && IsNumber(maxValue)) - { - var fillPercentage = value / CastToFloat(maxValue); - var barLabel = (!string.IsNullOrEmpty(progressBarAttribute.Name) ? "[" + progressBarAttribute.Name + "] " : "") + valueFormatted + "/" + maxValue; - var barColor = progressBarAttribute.Color.GetColor(); - var labelColor = Color.white; - - var indentLength = NaughtyEditorGUI.GetIndentLength(rect); - Rect barRect = new Rect() - { - x = rect.x + indentLength, - y = rect.y, - width = rect.width - indentLength, - height = EditorGUIUtility.singleLineHeight - }; - - DrawBar(barRect, Mathf.Clamp01(fillPercentage), barLabel, barColor, labelColor); - } - else - { - string message = string.Format( - "The provided dynamic max value for the progress bar is not correct. Please check if the '{0}' is correct, or the return type is float/int", - nameof(progressBarAttribute.MaxValueName)); - - DrawDefaultPropertyAndHelpBox(rect, property, message, MessageType.Warning); - } - - EditorGUI.EndProperty(); - } - - private object GetMaxValue(SerializedProperty property, ProgressBarAttribute progressBarAttribute) - { - if (string.IsNullOrEmpty(progressBarAttribute.MaxValueName)) - { - return progressBarAttribute.MaxValue; - } - else - { - object target = PropertyUtility.GetTargetObjectWithProperty(property); - - FieldInfo valuesFieldInfo = ReflectionUtility.GetField(target, progressBarAttribute.MaxValueName); - if (valuesFieldInfo != null) - { - return valuesFieldInfo.GetValue(target); - } - - PropertyInfo valuesPropertyInfo = ReflectionUtility.GetProperty(target, progressBarAttribute.MaxValueName); - if (valuesPropertyInfo != null) - { - return valuesPropertyInfo.GetValue(target); - } - - MethodInfo methodValuesInfo = ReflectionUtility.GetMethod(target, progressBarAttribute.MaxValueName); - if (methodValuesInfo != null && - (methodValuesInfo.ReturnType == typeof(float) || methodValuesInfo.ReturnType == typeof(int)) && - methodValuesInfo.GetParameters().Length == 0) - { - return methodValuesInfo.Invoke(target, null); - } - - return null; - } - } - - private void DrawBar(Rect rect, float fillPercent, string label, Color barColor, Color labelColor) - { - if (Event.current.type != EventType.Repaint) - { - return; - } - - var fillRect = new Rect(rect.x, rect.y, rect.width * fillPercent, rect.height); - - EditorGUI.DrawRect(rect, new Color(0.13f, 0.13f, 0.13f)); - EditorGUI.DrawRect(fillRect, barColor); - - // set alignment and cache the default - var align = GUI.skin.label.alignment; - GUI.skin.label.alignment = TextAnchor.UpperCenter; - - // set the color and cache the default - var c = GUI.contentColor; - GUI.contentColor = labelColor; - - // calculate the position - var labelRect = new Rect(rect.x, rect.y - 2, rect.width, rect.height); - - // draw~ - EditorGUI.DropShadowLabel(labelRect, label); - - // reset color and alignment - GUI.contentColor = c; - GUI.skin.label.alignment = align; - } - - private bool IsNumber(SerializedProperty property) - { - bool isNumber = property.propertyType == SerializedPropertyType.Float || property.propertyType == SerializedPropertyType.Integer; - return isNumber; - } - - private bool IsNumber(object obj) - { - return (obj is float) || (obj is int); - } - - private float CastToFloat(object obj) - { - if (obj is int) - { - return (int)obj; - } - else - { - return (float)obj; - } - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ProgressBarPropertyDrawer.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ProgressBarPropertyDrawer.cs.meta deleted file mode 100644 index dfb90f1a..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ProgressBarPropertyDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 0bcbc424b10864b4eb6e3bcfb276cdf9 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/PropertyDrawerBase.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/PropertyDrawerBase.cs deleted file mode 100644 index 36afd85d..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/PropertyDrawerBase.cs +++ /dev/null @@ -1,94 +0,0 @@ -using UnityEditor; -using UnityEngine; - -namespace NaughtyAttributes.Editor -{ - public abstract class PropertyDrawerBase : PropertyDrawer - { - public sealed override void OnGUI(Rect rect, SerializedProperty property, GUIContent label) - { - // Check if visible - bool visible = PropertyUtility.IsVisible(property); - if (!visible) - { - return; - } - - // Validate - ValidatorAttribute[] validatorAttributes = PropertyUtility.GetAttributes(property); - foreach (var validatorAttribute in validatorAttributes) - { - validatorAttribute.GetValidator().ValidateProperty(property); - } - - // Check if enabled and draw - EditorGUI.BeginChangeCheck(); - bool enabled = PropertyUtility.IsEnabled(property); - - using (new EditorGUI.DisabledScope(disabled: !enabled)) - { - OnGUI_Internal(rect, property, PropertyUtility.GetLabel(property)); - } - - // Call OnValueChanged callbacks - if (EditorGUI.EndChangeCheck()) - { - PropertyUtility.CallOnValueChangedCallbacks(property); - } - } - - protected abstract void OnGUI_Internal(Rect rect, SerializedProperty property, GUIContent label); - - sealed override public float GetPropertyHeight(SerializedProperty property, GUIContent label) - { - bool visible = PropertyUtility.IsVisible(property); - if (!visible) - { - return 0.0f; - } - - return GetPropertyHeight_Internal(property, label); - } - - protected virtual float GetPropertyHeight_Internal(SerializedProperty property, GUIContent label) - { - return EditorGUI.GetPropertyHeight(property, includeChildren: true); - } - - protected float GetPropertyHeight(SerializedProperty property) - { - SpecialCaseDrawerAttribute specialCaseAttribute = PropertyUtility.GetAttribute(property); - if (specialCaseAttribute != null) - { - return specialCaseAttribute.GetDrawer().GetPropertyHeight(property); - } - - return EditorGUI.GetPropertyHeight(property, includeChildren: true); - } - - public virtual float GetHelpBoxHeight() - { - return EditorGUIUtility.singleLineHeight * 2.0f; - } - - public void DrawDefaultPropertyAndHelpBox(Rect rect, SerializedProperty property, string message, MessageType messageType) - { - float indentLength = NaughtyEditorGUI.GetIndentLength(rect); - Rect helpBoxRect = new Rect( - rect.x + indentLength, - rect.y, - rect.width - indentLength, - GetHelpBoxHeight()); - - NaughtyEditorGUI.HelpBox(helpBoxRect, message, MessageType.Warning, context: property.serializedObject.targetObject); - - Rect propertyRect = new Rect( - rect.x, - rect.y + GetHelpBoxHeight(), - rect.width, - GetPropertyHeight(property)); - - EditorGUI.PropertyField(propertyRect, property, true); - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/PropertyDrawerBase.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/PropertyDrawerBase.cs.meta deleted file mode 100644 index 71a80b6a..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/PropertyDrawerBase.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 574f5fa6033f26342816a8a5f39749e5 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ResizableTextAreaPropertyDrawer.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ResizableTextAreaPropertyDrawer.cs deleted file mode 100644 index 6a78fa1c..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ResizableTextAreaPropertyDrawer.cs +++ /dev/null @@ -1,80 +0,0 @@ -using UnityEngine; -using UnityEditor; -using System.Text.RegularExpressions; -using System; - -namespace NaughtyAttributes.Editor -{ - [CustomPropertyDrawer(typeof(ResizableTextAreaAttribute))] - public class ResizableTextAreaPropertyDrawer : PropertyDrawerBase - { - protected override float GetPropertyHeight_Internal(SerializedProperty property, GUIContent label) - { - if (property.propertyType == SerializedPropertyType.String) - { - float labelHeight = EditorGUIUtility.singleLineHeight; - float textAreaHeight = GetTextAreaHeight(property.stringValue); - return labelHeight + textAreaHeight; - } - else - { - return GetPropertyHeight(property) + GetHelpBoxHeight(); - } - } - - protected override void OnGUI_Internal(Rect rect, SerializedProperty property, GUIContent label) - { - EditorGUI.BeginProperty(rect, label, property); - - if (property.propertyType == SerializedPropertyType.String) - { - Rect labelRect = new Rect() - { - x = rect.x, - y = rect.y, - width = rect.width, - height = EditorGUIUtility.singleLineHeight - }; - - EditorGUI.LabelField(labelRect, label.text); - - EditorGUI.BeginChangeCheck(); - - Rect textAreaRect = new Rect() - { - x = labelRect.x, - y = labelRect.y + EditorGUIUtility.singleLineHeight, - width = labelRect.width, - height = GetTextAreaHeight(property.stringValue) - }; - - string textAreaValue = EditorGUI.TextArea(textAreaRect, property.stringValue); - - if (EditorGUI.EndChangeCheck()) - { - property.stringValue = textAreaValue; - } - } - else - { - string message = typeof(ResizableTextAreaAttribute).Name + " can only be used on string fields"; - DrawDefaultPropertyAndHelpBox(rect, property, message, MessageType.Warning); - } - - EditorGUI.EndProperty(); - } - - private int GetNumberOfLines(string text) - { - string content = Regex.Replace(text, @"\r\n|\n\r|\r|\n", Environment.NewLine); - string[] lines = content.Split(new string[] { Environment.NewLine }, StringSplitOptions.None); - return lines.Length; - } - - private float GetTextAreaHeight(string text) - { - float height = (EditorGUIUtility.singleLineHeight - 3.0f) * GetNumberOfLines(text) + 3.0f; - return height; - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ResizableTextAreaPropertyDrawer.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ResizableTextAreaPropertyDrawer.cs.meta deleted file mode 100644 index 4b1e4a57..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ResizableTextAreaPropertyDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6e27ffd9a96b58c46bb74cc93de3e06f -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ScenePropertyDrawer.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ScenePropertyDrawer.cs deleted file mode 100644 index 9b0dfb3b..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ScenePropertyDrawer.cs +++ /dev/null @@ -1,99 +0,0 @@ -using UnityEngine; -using UnityEditor; -using System.Linq; -using System.Text.RegularExpressions; -using System; - -namespace NaughtyAttributes.Editor -{ - [CustomPropertyDrawer(typeof(SceneAttribute))] - public class ScenePropertyDrawer : PropertyDrawerBase - { - private const string SceneListItem = "{0} ({1})"; - private const string ScenePattern = @".+\/(.+)\.unity"; - private const string TypeWarningMessage = "{0} must be an int or a string"; - private const string BuildSettingsWarningMessage = "No scenes in the build settings"; - - protected override float GetPropertyHeight_Internal(SerializedProperty property, GUIContent label) - { - bool validPropertyType = property.propertyType == SerializedPropertyType.String || property.propertyType == SerializedPropertyType.Integer; - bool anySceneInBuildSettings = GetScenes().Length > 0; - - return (validPropertyType && anySceneInBuildSettings) - ? GetPropertyHeight(property) - : GetPropertyHeight(property) + GetHelpBoxHeight(); - } - - protected override void OnGUI_Internal(Rect rect, SerializedProperty property, GUIContent label) - { - EditorGUI.BeginProperty(rect, label, property); - - string[] scenes = GetScenes(); - bool anySceneInBuildSettings = scenes.Length > 0; - if (!anySceneInBuildSettings) - { - DrawDefaultPropertyAndHelpBox(rect, property, BuildSettingsWarningMessage, MessageType.Warning); - return; - } - - string[] sceneOptions = GetSceneOptions(scenes); - switch (property.propertyType) - { - case SerializedPropertyType.String: - DrawPropertyForString(rect, property, label, scenes, sceneOptions); - break; - case SerializedPropertyType.Integer: - DrawPropertyForInt(rect, property, label, sceneOptions); - break; - default: - string message = string.Format(TypeWarningMessage, property.name); - DrawDefaultPropertyAndHelpBox(rect, property, message, MessageType.Warning); - break; - } - - EditorGUI.EndProperty(); - } - - private string[] GetScenes() - { - return EditorBuildSettings.scenes - .Where(scene => scene.enabled) - .Select(scene => Regex.Match(scene.path, ScenePattern).Groups[1].Value) - .ToArray(); - } - - private string[] GetSceneOptions(string[] scenes) - { - return scenes.Select((s, i) => string.Format(SceneListItem, s, i)).ToArray(); - } - - private static void DrawPropertyForString(Rect rect, SerializedProperty property, GUIContent label, string[] scenes, string[] sceneOptions) - { - int index = IndexOf(scenes, property.stringValue); - int newIndex = EditorGUI.Popup(rect, label.text, index, sceneOptions); - string newScene = scenes[newIndex]; - - if (!property.stringValue.Equals(newScene, StringComparison.Ordinal)) - { - property.stringValue = scenes[newIndex]; - } - } - - private static void DrawPropertyForInt(Rect rect, SerializedProperty property, GUIContent label, string[] sceneOptions) - { - int index = property.intValue; - int newIndex = EditorGUI.Popup(rect, label.text, index, sceneOptions); - - if (property.intValue != newIndex) - { - property.intValue = newIndex; - } - } - - private static int IndexOf(string[] scenes, string scene) - { - var index = Array.IndexOf(scenes, scene); - return Mathf.Clamp(index, 0, scenes.Length - 1); - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ScenePropertyDrawer.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ScenePropertyDrawer.cs.meta deleted file mode 100644 index a4165442..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ScenePropertyDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7f5ed440d4f429e42a5da7bc5df48fd8 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ShowAssetPreviewPropertyDrawer.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ShowAssetPreviewPropertyDrawer.cs deleted file mode 100644 index ee3d10bf..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ShowAssetPreviewPropertyDrawer.cs +++ /dev/null @@ -1,110 +0,0 @@ -using UnityEngine; -using UnityEditor; - -namespace NaughtyAttributes.Editor -{ - [CustomPropertyDrawer(typeof(ShowAssetPreviewAttribute))] - public class ShowAssetPreviewPropertyDrawer : PropertyDrawerBase - { - protected override float GetPropertyHeight_Internal(SerializedProperty property, GUIContent label) - { - if (property.propertyType == SerializedPropertyType.ObjectReference) - { - Texture2D previewTexture = GetAssetPreview(property); - if (previewTexture != null) - { - return GetPropertyHeight(property) + GetAssetPreviewSize(property).y; - } - else - { - return GetPropertyHeight(property); - } - } - else - { - return GetPropertyHeight(property) + GetHelpBoxHeight(); - } - } - - protected override void OnGUI_Internal(Rect rect, SerializedProperty property, GUIContent label) - { - EditorGUI.BeginProperty(rect, label, property); - - if (property.propertyType == SerializedPropertyType.ObjectReference) - { - Rect propertyRect = new Rect() - { - x = rect.x, - y = rect.y, - width = rect.width, - height = EditorGUIUtility.singleLineHeight - }; - - EditorGUI.PropertyField(propertyRect, property, label); - - Texture2D previewTexture = GetAssetPreview(property); - if (previewTexture != null) - { - Rect previewRect = new Rect() - { - x = rect.x + NaughtyEditorGUI.GetIndentLength(rect), - y = rect.y + EditorGUIUtility.singleLineHeight, - width = rect.width, - height = GetAssetPreviewSize(property).y - }; - - GUI.Label(previewRect, previewTexture); - } - } - else - { - string message = property.name + " doesn't have an asset preview"; - DrawDefaultPropertyAndHelpBox(rect, property, message, MessageType.Warning); - } - - EditorGUI.EndProperty(); - } - - private Texture2D GetAssetPreview(SerializedProperty property) - { - if (property.propertyType == SerializedPropertyType.ObjectReference) - { - if (property.objectReferenceValue != null) - { - Texture2D previewTexture = AssetPreview.GetAssetPreview(property.objectReferenceValue); - return previewTexture; - } - - return null; - } - - return null; - } - - private Vector2 GetAssetPreviewSize(SerializedProperty property) - { - Texture2D previewTexture = GetAssetPreview(property); - if (previewTexture == null) - { - return Vector2.zero; - } - else - { - int targetWidth = ShowAssetPreviewAttribute.DefaultWidth; - int targetHeight = ShowAssetPreviewAttribute.DefaultHeight; - - ShowAssetPreviewAttribute showAssetPreviewAttribute = PropertyUtility.GetAttribute(property); - if (showAssetPreviewAttribute != null) - { - targetWidth = showAssetPreviewAttribute.Width; - targetHeight = showAssetPreviewAttribute.Height; - } - - int width = Mathf.Clamp(targetWidth, 0, previewTexture.width); - int height = Mathf.Clamp(targetHeight, 0, previewTexture.height); - - return new Vector2(width, height); - } - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ShowAssetPreviewPropertyDrawer.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ShowAssetPreviewPropertyDrawer.cs.meta deleted file mode 100644 index 5a4d16d2..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/ShowAssetPreviewPropertyDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 24dee3fc91cfe94438de1e3c158f187f -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/SortingLayerPropertyDrawer.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/SortingLayerPropertyDrawer.cs deleted file mode 100644 index 88227157..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/SortingLayerPropertyDrawer.cs +++ /dev/null @@ -1,91 +0,0 @@ -using UnityEngine; -using UnityEditor; -using System; -using System.Reflection; - -namespace NaughtyAttributes.Editor -{ - [CustomPropertyDrawer(typeof(SortingLayerAttribute))] - public class SortingLayerPropertyDrawer : PropertyDrawerBase - { - private const string TypeWarningMessage = "{0} must be an int or a string"; - - protected override float GetPropertyHeight_Internal(SerializedProperty property, GUIContent label) - { - bool validPropertyType = property.propertyType == SerializedPropertyType.String || property.propertyType == SerializedPropertyType.Integer; - - return validPropertyType - ? GetPropertyHeight(property) - : GetPropertyHeight(property) + GetHelpBoxHeight(); - } - - protected override void OnGUI_Internal(Rect rect, SerializedProperty property, GUIContent label) - { - EditorGUI.BeginProperty(rect, label, property); - - switch (property.propertyType) - { - case SerializedPropertyType.String: - DrawPropertyForString(rect, property, label, GetLayers()); - break; - case SerializedPropertyType.Integer: - DrawPropertyForInt(rect, property, label, GetLayers()); - break; - default: - string message = string.Format(TypeWarningMessage, property.name); - DrawDefaultPropertyAndHelpBox(rect, property, message, MessageType.Warning); - break; - } - - EditorGUI.EndProperty(); - } - - private string[] GetLayers() - { - Type internalEditorUtilityType = typeof(UnityEditorInternal.InternalEditorUtility); - PropertyInfo sortingLayersProperty = internalEditorUtilityType.GetProperty("sortingLayerNames", BindingFlags.Static | BindingFlags.NonPublic); - return (string[])sortingLayersProperty.GetValue(null, new object[0]); - } - - private static void DrawPropertyForString(Rect rect, SerializedProperty property, GUIContent label, string[] layers) - { - int index = IndexOf(layers, property.stringValue); - int newIndex = EditorGUI.Popup(rect, label.text, index, layers); - string newLayer = layers[newIndex]; - - if (!property.stringValue.Equals(newLayer, StringComparison.Ordinal)) - { - property.stringValue = layers[newIndex]; - } - } - - private static void DrawPropertyForInt(Rect rect, SerializedProperty property, GUIContent label, string[] layers) - { - int index = 0; - string layerName = SortingLayer.IDToName(property.intValue); - for (int i = 0; i < layers.Length; i++) - { - if (layerName.Equals(layers[i], StringComparison.Ordinal)) - { - index = i; - break; - } - } - - int newIndex = EditorGUI.Popup(rect, label.text, index, layers); - string newLayerName = layers[newIndex]; - int newLayerNumber = SortingLayer.NameToID(newLayerName); - - if (property.intValue != newLayerNumber) - { - property.intValue = newLayerNumber; - } - } - - private static int IndexOf(string[] layers, string layer) - { - var index = Array.IndexOf(layers, layer); - return Mathf.Clamp(index, 0, layers.Length - 1); - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/SortingLayerPropertyDrawer.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/SortingLayerPropertyDrawer.cs.meta deleted file mode 100644 index d99bdf93..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/SortingLayerPropertyDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b0ed20ed34d732246a98cde96351fccb -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/TagPropertyDrawer.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/TagPropertyDrawer.cs deleted file mode 100644 index 7a00a403..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/TagPropertyDrawer.cs +++ /dev/null @@ -1,62 +0,0 @@ -using System.Collections.Generic; -using UnityEditor; -using UnityEngine; - -namespace NaughtyAttributes.Editor -{ - [CustomPropertyDrawer(typeof(TagAttribute))] - public class TagPropertyDrawer : PropertyDrawerBase - { - protected override float GetPropertyHeight_Internal(SerializedProperty property, GUIContent label) - { - return (property.propertyType == SerializedPropertyType.String) - ? GetPropertyHeight(property) - : GetPropertyHeight(property) + GetHelpBoxHeight(); - } - - protected override void OnGUI_Internal(Rect rect, SerializedProperty property, GUIContent label) - { - EditorGUI.BeginProperty(rect, label, property); - - if (property.propertyType == SerializedPropertyType.String) - { - // generate the taglist + custom tags - List tagList = new List(); - tagList.Add("(None)"); - tagList.Add("Untagged"); - tagList.AddRange(UnityEditorInternal.InternalEditorUtility.tags); - - string propertyString = property.stringValue; - int index = 0; - // check if there is an entry that matches the entry and get the index - // we skip index 0 as that is a special custom case - for (int i = 1; i < tagList.Count; i++) - { - if (tagList[i].Equals(propertyString, System.StringComparison.Ordinal)) - { - index = i; - break; - } - } - - // Draw the popup box with the current selected index - int newIndex = EditorGUI.Popup(rect, label.text, index, tagList.ToArray()); - - // Adjust the actual string value of the property based on the selection - string newValue = newIndex > 0 ? tagList[newIndex] : string.Empty; - - if (!property.stringValue.Equals(newValue, System.StringComparison.Ordinal)) - { - property.stringValue = newValue; - } - } - else - { - string message = string.Format("{0} supports only string fields", typeof(TagAttribute).Name); - DrawDefaultPropertyAndHelpBox(rect, property, message, MessageType.Warning); - } - - EditorGUI.EndProperty(); - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/TagPropertyDrawer.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/TagPropertyDrawer.cs.meta deleted file mode 100644 index 75f76c59..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers/TagPropertyDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 3df4c068c970ab6498df7a60efbde311 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers_SpecialCase.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers_SpecialCase.meta deleted file mode 100644 index 88cd4587..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers_SpecialCase.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 750a102004a7e4f46a2046a3d74cae19 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers_SpecialCase/ReorderableListPropertyDrawer.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers_SpecialCase/ReorderableListPropertyDrawer.cs deleted file mode 100644 index fea369d6..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers_SpecialCase/ReorderableListPropertyDrawer.cs +++ /dev/null @@ -1,205 +0,0 @@ -using UnityEngine; -using UnityEditor; -using UnityEditorInternal; -using System.Collections.Generic; - -namespace NaughtyAttributes.Editor -{ - public class ReorderableListPropertyDrawer : SpecialCasePropertyDrawerBase - { - public static readonly ReorderableListPropertyDrawer Instance = new ReorderableListPropertyDrawer(); - - private readonly Dictionary _reorderableListsByPropertyName = new Dictionary(); - - private GUIStyle _labelStyle; - - private GUIStyle GetLabelStyle() - { - if (_labelStyle == null) - { - _labelStyle = new GUIStyle(EditorStyles.boldLabel); - _labelStyle.richText = true; - } - - return _labelStyle; - } - - private string GetPropertyKeyName(SerializedProperty property) - { - return property.serializedObject.targetObject.GetInstanceID() + "." + property.name; - } - - protected override float GetPropertyHeight_Internal(SerializedProperty property) - { - if (property.isArray) - { - string key = GetPropertyKeyName(property); - - if (_reorderableListsByPropertyName.TryGetValue(key, out ReorderableList reorderableList) == false) - { - return 0; - } - - return reorderableList.GetHeight(); - } - - return EditorGUI.GetPropertyHeight(property, true); - } - - protected override void OnGUI_Internal(Rect rect, SerializedProperty property, GUIContent label) - { - if (property.isArray) - { - string key = GetPropertyKeyName(property); - - ReorderableList reorderableList = null; - if (!_reorderableListsByPropertyName.ContainsKey(key)) - { - reorderableList = new ReorderableList(property.serializedObject, property, true, true, true, true) - { - drawHeaderCallback = (Rect r) => - { - EditorGUI.LabelField(r, string.Format("{0}: {1}", label.text, property.arraySize), GetLabelStyle()); - HandleDragAndDrop(r, reorderableList); - }, - - drawElementCallback = (Rect r, int index, bool isActive, bool isFocused) => - { - SerializedProperty element = property.GetArrayElementAtIndex(index); - r.y += 1.0f; - r.x += 10.0f; - r.width -= 10.0f; - - EditorGUI.PropertyField(new Rect(r.x, r.y, r.width, EditorGUIUtility.singleLineHeight), element, true); - }, - - elementHeightCallback = (int index) => - { - return EditorGUI.GetPropertyHeight(property.GetArrayElementAtIndex(index)) + 4.0f; - } - }; - - _reorderableListsByPropertyName[key] = reorderableList; - } - - reorderableList = _reorderableListsByPropertyName[key]; - - if (rect == default) - { - reorderableList.DoLayoutList(); - } - else - { - reorderableList.DoList(rect); - } - } - else - { - string message = typeof(ReorderableListAttribute).Name + " can be used only on arrays or lists"; - NaughtyEditorGUI.HelpBox_Layout(message, MessageType.Warning, context: property.serializedObject.targetObject); - EditorGUILayout.PropertyField(property, true); - } - } - - public void ClearCache() - { - _reorderableListsByPropertyName.Clear(); - } - - private Object GetAssignableObject(Object obj, ReorderableList list) - { - System.Type listType = PropertyUtility.GetPropertyType(list.serializedProperty); - System.Type elementType = ReflectionUtility.GetListElementType(listType); - - if (elementType == null) - { - return null; - } - - System.Type objType = obj.GetType(); - - if (elementType.IsAssignableFrom(objType)) - { - return obj; - } - - if (objType == typeof(GameObject)) - { - if (typeof(Transform).IsAssignableFrom(elementType)) - { - Transform transform = ((GameObject)obj).transform; - if (elementType == typeof(RectTransform)) - { - RectTransform rectTransform = transform as RectTransform; - return rectTransform; - } - else - { - return transform; - } - } - else if (typeof(MonoBehaviour).IsAssignableFrom(elementType)) - { - return ((GameObject)obj).GetComponent(elementType); - } - } - - return null; - } - - private void HandleDragAndDrop(Rect rect, ReorderableList list) - { - var currentEvent = Event.current; - var usedEvent = false; - - switch (currentEvent.type) - { - case EventType.DragExited: - if (GUI.enabled) - { - HandleUtility.Repaint(); - } - - break; - - case EventType.DragUpdated: - case EventType.DragPerform: - if (rect.Contains(currentEvent.mousePosition) && GUI.enabled) - { - // Check each single object, so we can add multiple objects in a single drag. - bool didAcceptDrag = false; - Object[] references = DragAndDrop.objectReferences; - foreach (Object obj in references) - { - Object assignableObject = GetAssignableObject(obj, list); - if (assignableObject != null) - { - DragAndDrop.visualMode = DragAndDropVisualMode.Copy; - if (currentEvent.type == EventType.DragPerform) - { - list.serializedProperty.arraySize++; - int arrayEnd = list.serializedProperty.arraySize - 1; - list.serializedProperty.GetArrayElementAtIndex(arrayEnd).objectReferenceValue = assignableObject; - didAcceptDrag = true; - } - } - } - - if (didAcceptDrag) - { - GUI.changed = true; - DragAndDrop.AcceptDrag(); - usedEvent = true; - } - } - - break; - } - - if (usedEvent) - { - currentEvent.Use(); - } - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers_SpecialCase/ReorderableListPropertyDrawer.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers_SpecialCase/ReorderableListPropertyDrawer.cs.meta deleted file mode 100644 index 4ff1a661..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers_SpecialCase/ReorderableListPropertyDrawer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: bf36691a6d456564db2fcbfa8726b3f3 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers_SpecialCase/SpecialCasePropertyDrawerBase.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers_SpecialCase/SpecialCasePropertyDrawerBase.cs deleted file mode 100644 index 0490b50a..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers_SpecialCase/SpecialCasePropertyDrawerBase.cs +++ /dev/null @@ -1,74 +0,0 @@ -using System; -using System.Collections.Generic; -using UnityEditor; -using UnityEngine; - -namespace NaughtyAttributes.Editor -{ - public abstract class SpecialCasePropertyDrawerBase - { - public void OnGUI(Rect rect, SerializedProperty property) - { - // Check if visible - bool visible = PropertyUtility.IsVisible(property); - if (!visible) - { - return; - } - - // Validate - ValidatorAttribute[] validatorAttributes = PropertyUtility.GetAttributes(property); - foreach (var validatorAttribute in validatorAttributes) - { - validatorAttribute.GetValidator().ValidateProperty(property); - } - - // Check if enabled and draw - EditorGUI.BeginChangeCheck(); - bool enabled = PropertyUtility.IsEnabled(property); - - using (new EditorGUI.DisabledScope(disabled: !enabled)) - { - OnGUI_Internal(rect, property, PropertyUtility.GetLabel(property)); - } - - // Call OnValueChanged callbacks - if (EditorGUI.EndChangeCheck()) - { - PropertyUtility.CallOnValueChangedCallbacks(property); - } - } - - public float GetPropertyHeight(SerializedProperty property) - { - return GetPropertyHeight_Internal(property); - } - - protected abstract void OnGUI_Internal(Rect rect, SerializedProperty property, GUIContent label); - protected abstract float GetPropertyHeight_Internal(SerializedProperty property); - } - - public static class SpecialCaseDrawerAttributeExtensions - { - private static Dictionary _drawersByAttributeType; - - static SpecialCaseDrawerAttributeExtensions() - { - _drawersByAttributeType = new Dictionary(); - _drawersByAttributeType[typeof(ReorderableListAttribute)] = ReorderableListPropertyDrawer.Instance; - } - - public static SpecialCasePropertyDrawerBase GetDrawer(this SpecialCaseDrawerAttribute attr) - { - SpecialCasePropertyDrawerBase drawer; - if (_drawersByAttributeType.TryGetValue(attr.GetType(), out drawer)) - { - return drawer; - } - else - { - return null; - } - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers_SpecialCase/SpecialCasePropertyDrawerBase.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers_SpecialCase/SpecialCasePropertyDrawerBase.cs.meta deleted file mode 100644 index c60287c7..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyDrawers_SpecialCase/SpecialCasePropertyDrawerBase.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 771776453ad34b045a41dea54856fa12 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators.meta deleted file mode 100644 index 949d96db..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 41caedece93df91439d624dc9d124424 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/MaxValuePropertyValidator.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/MaxValuePropertyValidator.cs deleted file mode 100644 index 0e7d3b7b..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/MaxValuePropertyValidator.cs +++ /dev/null @@ -1,53 +0,0 @@ -using UnityEngine; -using UnityEditor; - -namespace NaughtyAttributes.Editor -{ - public class MaxValuePropertyValidator : PropertyValidatorBase - { - public override void ValidateProperty(SerializedProperty property) - { - MaxValueAttribute maxValueAttribute = PropertyUtility.GetAttribute(property); - - if (property.propertyType == SerializedPropertyType.Integer) - { - if (property.intValue > maxValueAttribute.MaxValue) - { - property.intValue = (int)maxValueAttribute.MaxValue; - } - } - else if (property.propertyType == SerializedPropertyType.Float) - { - if (property.floatValue > maxValueAttribute.MaxValue) - { - property.floatValue = maxValueAttribute.MaxValue; - } - } - else if (property.propertyType == SerializedPropertyType.Vector2) - { - property.vector2Value = Vector2.Min(property.vector2Value, new Vector2(maxValueAttribute.MaxValue, maxValueAttribute.MaxValue)); - } - else if (property.propertyType == SerializedPropertyType.Vector3) - { - property.vector3Value = Vector3.Min(property.vector3Value, new Vector3(maxValueAttribute.MaxValue, maxValueAttribute.MaxValue, maxValueAttribute.MaxValue)); - } - else if (property.propertyType == SerializedPropertyType.Vector4) - { - property.vector4Value = Vector4.Min(property.vector4Value, new Vector4(maxValueAttribute.MaxValue, maxValueAttribute.MaxValue, maxValueAttribute.MaxValue, maxValueAttribute.MaxValue)); - } - else if (property.propertyType == SerializedPropertyType.Vector2Int) - { - property.vector2IntValue = Vector2Int.Min(property.vector2IntValue, new Vector2Int((int)maxValueAttribute.MaxValue, (int)maxValueAttribute.MaxValue)); - } - else if (property.propertyType == SerializedPropertyType.Vector3Int) - { - property.vector3IntValue = Vector3Int.Min(property.vector3IntValue, new Vector3Int((int)maxValueAttribute.MaxValue, (int)maxValueAttribute.MaxValue, (int)maxValueAttribute.MaxValue)); - } - else - { - string warning = maxValueAttribute.GetType().Name + " can be used only on int, float, Vector or VectorInt fields"; - Debug.LogWarning(warning, property.serializedObject.targetObject); - } - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/MaxValuePropertyValidator.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/MaxValuePropertyValidator.cs.meta deleted file mode 100644 index 3e809ac2..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/MaxValuePropertyValidator.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 627b8e9e7bda6fa408c6f47fb8285665 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/MinValuePropertyValidator.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/MinValuePropertyValidator.cs deleted file mode 100644 index 80df0695..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/MinValuePropertyValidator.cs +++ /dev/null @@ -1,53 +0,0 @@ -using UnityEngine; -using UnityEditor; - -namespace NaughtyAttributes.Editor -{ - public class MinValuePropertyValidator : PropertyValidatorBase - { - public override void ValidateProperty(SerializedProperty property) - { - MinValueAttribute minValueAttribute = PropertyUtility.GetAttribute(property); - - if (property.propertyType == SerializedPropertyType.Integer) - { - if (property.intValue < minValueAttribute.MinValue) - { - property.intValue = (int)minValueAttribute.MinValue; - } - } - else if (property.propertyType == SerializedPropertyType.Float) - { - if (property.floatValue < minValueAttribute.MinValue) - { - property.floatValue = minValueAttribute.MinValue; - } - } - else if (property.propertyType == SerializedPropertyType.Vector2) - { - property.vector2Value = Vector2.Max(property.vector2Value, new Vector2(minValueAttribute.MinValue, minValueAttribute.MinValue)); - } - else if (property.propertyType == SerializedPropertyType.Vector3) - { - property.vector3Value = Vector3.Max(property.vector3Value, new Vector3(minValueAttribute.MinValue, minValueAttribute.MinValue, minValueAttribute.MinValue)); - } - else if (property.propertyType == SerializedPropertyType.Vector4) - { - property.vector4Value = Vector4.Max(property.vector4Value, new Vector4(minValueAttribute.MinValue, minValueAttribute.MinValue, minValueAttribute.MinValue, minValueAttribute.MinValue)); - } - else if (property.propertyType == SerializedPropertyType.Vector2Int) - { - property.vector2IntValue = Vector2Int.Max(property.vector2IntValue, new Vector2Int((int)minValueAttribute.MinValue, (int)minValueAttribute.MinValue)); - } - else if (property.propertyType == SerializedPropertyType.Vector3Int) - { - property.vector3IntValue = Vector3Int.Max(property.vector3IntValue, new Vector3Int((int)minValueAttribute.MinValue, (int)minValueAttribute.MinValue, (int)minValueAttribute.MinValue)); - } - else - { - string warning = minValueAttribute.GetType().Name + " can be used only on int, float, Vector or VectorInt fields"; - Debug.LogWarning(warning, property.serializedObject.targetObject); - } - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/MinValuePropertyValidator.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/MinValuePropertyValidator.cs.meta deleted file mode 100644 index b3bb871b..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/MinValuePropertyValidator.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 03dd23f6c0598074fb1b721dcd8fe023 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/PropertyValidatorBase.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/PropertyValidatorBase.cs deleted file mode 100644 index 1c0411fc..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/PropertyValidatorBase.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System; -using System.Collections.Generic; -using UnityEditor; - -namespace NaughtyAttributes.Editor -{ - public abstract class PropertyValidatorBase - { - public abstract void ValidateProperty(SerializedProperty property); - } - - public static class ValidatorAttributeExtensions - { - private static Dictionary _validatorsByAttributeType; - - static ValidatorAttributeExtensions() - { - _validatorsByAttributeType = new Dictionary(); - _validatorsByAttributeType[typeof(MinValueAttribute)] = new MinValuePropertyValidator(); - _validatorsByAttributeType[typeof(MaxValueAttribute)] = new MaxValuePropertyValidator(); - _validatorsByAttributeType[typeof(RequiredAttribute)] = new RequiredPropertyValidator(); - _validatorsByAttributeType[typeof(ValidateInputAttribute)] = new ValidateInputPropertyValidator(); - } - - public static PropertyValidatorBase GetValidator(this ValidatorAttribute attr) - { - PropertyValidatorBase validator; - if (_validatorsByAttributeType.TryGetValue(attr.GetType(), out validator)) - { - return validator; - } - else - { - return null; - } - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/PropertyValidatorBase.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/PropertyValidatorBase.cs.meta deleted file mode 100644 index 97fe5812..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/PropertyValidatorBase.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: f332c8e1c3627d742aa9158af7b02ccc -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/RequiredPropertyValidator.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/RequiredPropertyValidator.cs deleted file mode 100644 index 11336503..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/RequiredPropertyValidator.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEditor; - -namespace NaughtyAttributes.Editor -{ - public class RequiredPropertyValidator : PropertyValidatorBase - { - public override void ValidateProperty(SerializedProperty property) - { - RequiredAttribute requiredAttribute = PropertyUtility.GetAttribute(property); - - if (property.propertyType == SerializedPropertyType.ObjectReference) - { - if (property.objectReferenceValue == null) - { - string errorMessage = property.name + " is required"; - if (!string.IsNullOrEmpty(requiredAttribute.Message)) - { - errorMessage = requiredAttribute.Message; - } - - NaughtyEditorGUI.HelpBox_Layout(errorMessage, MessageType.Error, context: property.serializedObject.targetObject); - } - } - else - { - string warning = requiredAttribute.GetType().Name + " works only on reference types"; - NaughtyEditorGUI.HelpBox_Layout(warning, MessageType.Warning, context: property.serializedObject.targetObject); - } - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/RequiredPropertyValidator.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/RequiredPropertyValidator.cs.meta deleted file mode 100644 index d24143ac..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/RequiredPropertyValidator.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 3a7e657ea45f6414682b5f41be9541b4 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/ValidateInputPropertyValidator.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/ValidateInputPropertyValidator.cs deleted file mode 100644 index 1252c702..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/ValidateInputPropertyValidator.cs +++ /dev/null @@ -1,76 +0,0 @@ -using UnityEditor; -using System.Reflection; -using System; - -namespace NaughtyAttributes.Editor -{ - public class ValidateInputPropertyValidator : PropertyValidatorBase - { - public override void ValidateProperty(SerializedProperty property) - { - ValidateInputAttribute validateInputAttribute = PropertyUtility.GetAttribute(property); - object target = PropertyUtility.GetTargetObjectWithProperty(property); - - MethodInfo validationCallback = ReflectionUtility.GetMethod(target, validateInputAttribute.CallbackName); - - if (validationCallback != null && - validationCallback.ReturnType == typeof(bool)) - { - ParameterInfo[] callbackParameters = validationCallback.GetParameters(); - - if (callbackParameters.Length == 0) - { - if (!(bool)validationCallback.Invoke(target, null)) - { - if (string.IsNullOrEmpty(validateInputAttribute.Message)) - { - NaughtyEditorGUI.HelpBox_Layout( - property.name + " is not valid", MessageType.Error, context: property.serializedObject.targetObject); - } - else - { - NaughtyEditorGUI.HelpBox_Layout( - validateInputAttribute.Message, MessageType.Error, context: property.serializedObject.targetObject); - } - } - } - else if (callbackParameters.Length == 1) - { - FieldInfo fieldInfo = ReflectionUtility.GetField(target, property.name); - Type fieldType = fieldInfo.FieldType; - Type parameterType = callbackParameters[0].ParameterType; - - if (fieldType == parameterType) - { - if (!(bool)validationCallback.Invoke(target, new object[] { fieldInfo.GetValue(target) })) - { - if (string.IsNullOrEmpty(validateInputAttribute.Message)) - { - NaughtyEditorGUI.HelpBox_Layout( - property.name + " is not valid", MessageType.Error, context: property.serializedObject.targetObject); - } - else - { - NaughtyEditorGUI.HelpBox_Layout( - validateInputAttribute.Message, MessageType.Error, context: property.serializedObject.targetObject); - } - } - } - else - { - string warning = "The field type is not the same as the callback's parameter type"; - NaughtyEditorGUI.HelpBox_Layout(warning, MessageType.Warning, context: property.serializedObject.targetObject); - } - } - else - { - string warning = - validateInputAttribute.GetType().Name + - " needs a callback with boolean return type and an optional single parameter of the same type as the field"; - - NaughtyEditorGUI.HelpBox_Layout(warning, MessageType.Warning, context: property.serializedObject.targetObject); - } - } - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/ValidateInputPropertyValidator.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/ValidateInputPropertyValidator.cs.meta deleted file mode 100644 index 3f6e5393..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/PropertyValidators/ValidateInputPropertyValidator.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 5f6adf84ed53a7840a456e8b4dce38d9 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility.meta deleted file mode 100644 index ed16eddd..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility.meta +++ /dev/null @@ -1,10 +0,0 @@ -fileFormatVersion: 2 -guid: acb4475c71a3fe947a81ced84ab89c6d -folderAsset: yes -timeCreated: 1508062761 -licenseType: Free -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/ButtonUtility.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/ButtonUtility.cs deleted file mode 100644 index ca5f4ca8..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/ButtonUtility.cs +++ /dev/null @@ -1,55 +0,0 @@ -using UnityEngine; -using System.Reflection; -using System.Collections.Generic; - -namespace NaughtyAttributes.Editor -{ - public static class ButtonUtility - { - public static bool IsEnabled(Object target, MethodInfo method) - { - EnableIfAttributeBase enableIfAttribute = method.GetCustomAttribute(); - if (enableIfAttribute == null) - { - return true; - } - - List conditionValues = PropertyUtility.GetConditionValues(target, enableIfAttribute.Conditions); - if (conditionValues.Count > 0) - { - bool enabled = PropertyUtility.GetConditionsFlag(conditionValues, enableIfAttribute.ConditionOperator, enableIfAttribute.Inverted); - return enabled; - } - else - { - string message = enableIfAttribute.GetType().Name + " needs a valid boolean condition field, property or method name to work"; - Debug.LogWarning(message, target); - - return false; - } - } - - public static bool IsVisible(Object target, MethodInfo method) - { - ShowIfAttributeBase showIfAttribute = method.GetCustomAttribute(); - if (showIfAttribute == null) - { - return true; - } - - List conditionValues = PropertyUtility.GetConditionValues(target, showIfAttribute.Conditions); - if (conditionValues.Count > 0) - { - bool enabled = PropertyUtility.GetConditionsFlag(conditionValues, showIfAttribute.ConditionOperator, showIfAttribute.Inverted); - return enabled; - } - else - { - string message = showIfAttribute.GetType().Name + " needs a valid boolean condition field, property or method name to work"; - Debug.LogWarning(message, target); - - return false; - } - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/ButtonUtility.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/ButtonUtility.cs.meta deleted file mode 100644 index cf4dacee..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/ButtonUtility.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a273f81125ec52d4cb5dec2228afda0e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/NaughtyEditorGUI.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/NaughtyEditorGUI.cs deleted file mode 100644 index ee17a7a7..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/NaughtyEditorGUI.cs +++ /dev/null @@ -1,380 +0,0 @@ -using System; -using System.Collections; -using System.Linq; -using System.Reflection; -using UnityEditor; -using UnityEditor.Experimental.SceneManagement; -using UnityEditor.SceneManagement; -using UnityEngine; - -namespace NaughtyAttributes.Editor -{ - public static class NaughtyEditorGUI - { - public const float IndentLength = 15.0f; - public const float HorizontalSpacing = 2.0f; - - private static GUIStyle _buttonStyle = new GUIStyle(GUI.skin.button) { richText = true }; - - private delegate void PropertyFieldFunction(Rect rect, SerializedProperty property, GUIContent label, bool includeChildren); - - public static void PropertyField(Rect rect, SerializedProperty property, bool includeChildren) - { - PropertyField_Implementation(rect, property, includeChildren, DrawPropertyField); - } - - public static void PropertyField_Layout(SerializedProperty property, bool includeChildren) - { - Rect dummyRect = new Rect(); - PropertyField_Implementation(dummyRect, property, includeChildren, DrawPropertyField_Layout); - } - - private static void DrawPropertyField(Rect rect, SerializedProperty property, GUIContent label, bool includeChildren) - { - EditorGUI.PropertyField(rect, property, label, includeChildren); - } - - private static void DrawPropertyField_Layout(Rect rect, SerializedProperty property, GUIContent label, bool includeChildren) - { - EditorGUILayout.PropertyField(property, label, includeChildren); - } - - private static void PropertyField_Implementation(Rect rect, SerializedProperty property, bool includeChildren, PropertyFieldFunction propertyFieldFunction) - { - SpecialCaseDrawerAttribute specialCaseAttribute = PropertyUtility.GetAttribute(property); - if (specialCaseAttribute != null) - { - specialCaseAttribute.GetDrawer().OnGUI(rect, property); - } - else - { - // Check if visible - bool visible = PropertyUtility.IsVisible(property); - if (!visible) - { - return; - } - - // Validate - ValidatorAttribute[] validatorAttributes = PropertyUtility.GetAttributes(property); - foreach (var validatorAttribute in validatorAttributes) - { - validatorAttribute.GetValidator().ValidateProperty(property); - } - - // Check if enabled and draw - EditorGUI.BeginChangeCheck(); - bool enabled = PropertyUtility.IsEnabled(property); - - using (new EditorGUI.DisabledScope(disabled: !enabled)) - { - propertyFieldFunction.Invoke(rect, property, PropertyUtility.GetLabel(property), includeChildren); - } - - // Call OnValueChanged callbacks - if (EditorGUI.EndChangeCheck()) - { - PropertyUtility.CallOnValueChangedCallbacks(property); - } - } - } - - public static float GetIndentLength(Rect sourceRect) - { - Rect indentRect = EditorGUI.IndentedRect(sourceRect); - float indentLength = indentRect.x - sourceRect.x; - - return indentLength; - } - - public static void BeginBoxGroup_Layout(string label = "") - { - EditorGUILayout.BeginVertical(GUI.skin.box); - if (!string.IsNullOrEmpty(label)) - { - EditorGUILayout.LabelField(label, EditorStyles.boldLabel); - } - } - - public static void EndBoxGroup_Layout() - { - EditorGUILayout.EndVertical(); - } - - /// - /// Creates a dropdown - /// - /// The rect the defines the position and size of the dropdown in the inspector - /// The serialized object that is being updated - /// The target object that contains the dropdown - /// The field of the target object that holds the currently selected dropdown value - /// The label of the dropdown - /// The index of the value from the values array - /// The values of the dropdown - /// The display options for the values - public static void Dropdown( - Rect rect, SerializedObject serializedObject, object target, FieldInfo dropdownField, - string label, int selectedValueIndex, object[] values, string[] displayOptions) - { - EditorGUI.BeginChangeCheck(); - - int newIndex = EditorGUI.Popup(rect, label, selectedValueIndex, displayOptions); - object newValue = values[newIndex]; - - object dropdownValue = dropdownField.GetValue(target); - if (dropdownValue == null || !dropdownValue.Equals(newValue)) - { - Undo.RecordObject(serializedObject.targetObject, "Dropdown"); - - // TODO: Problem with structs, because they are value type. - // The solution is to make boxing/unboxing but unfortunately I don't know the compile time type of the target object - dropdownField.SetValue(target, newValue); - } - } - - public static void Button(UnityEngine.Object target, MethodInfo methodInfo) - { - bool visible = ButtonUtility.IsVisible(target, methodInfo); - if (!visible) - { - return; - } - - if (methodInfo.GetParameters().All(p => p.IsOptional)) - { - ButtonAttribute buttonAttribute = (ButtonAttribute)methodInfo.GetCustomAttributes(typeof(ButtonAttribute), true)[0]; - string buttonText = string.IsNullOrEmpty(buttonAttribute.Text) ? ObjectNames.NicifyVariableName(methodInfo.Name) : buttonAttribute.Text; - - bool buttonEnabled = ButtonUtility.IsEnabled(target, methodInfo); - - EButtonEnableMode mode = buttonAttribute.SelectedEnableMode; - buttonEnabled &= - mode == EButtonEnableMode.Always || - mode == EButtonEnableMode.Editor && !Application.isPlaying || - mode == EButtonEnableMode.Playmode && Application.isPlaying; - - bool methodIsCoroutine = methodInfo.ReturnType == typeof(IEnumerator); - if (methodIsCoroutine) - { - buttonEnabled &= (Application.isPlaying ? true : false); - } - - EditorGUI.BeginDisabledGroup(!buttonEnabled); - - if (GUILayout.Button(buttonText, _buttonStyle)) - { - object[] defaultParams = methodInfo.GetParameters().Select(p => p.DefaultValue).ToArray(); - IEnumerator methodResult = methodInfo.Invoke(target, defaultParams) as IEnumerator; - - if (!Application.isPlaying) - { - // Set target object and scene dirty to serialize changes to disk - EditorUtility.SetDirty(target); - - PrefabStage stage = PrefabStageUtility.GetCurrentPrefabStage(); - if (stage != null) - { - // Prefab mode - EditorSceneManager.MarkSceneDirty(stage.scene); - } - else - { - // Normal scene - EditorSceneManager.MarkSceneDirty(EditorSceneManager.GetActiveScene()); - } - } - else if (methodResult != null && target is MonoBehaviour behaviour) - { - behaviour.StartCoroutine(methodResult); - } - } - - EditorGUI.EndDisabledGroup(); - } - else - { - string warning = typeof(ButtonAttribute).Name + " works only on methods with no parameters"; - HelpBox_Layout(warning, MessageType.Warning, context: target, logToConsole: true); - } - } - - public static void NativeProperty_Layout(UnityEngine.Object target, PropertyInfo property) - { - object value = property.GetValue(target, null); - - if (value == null) - { - string warning = string.Format("{0} is null. {1} doesn't support reference types with null value", ObjectNames.NicifyVariableName(property.Name), typeof(ShowNativePropertyAttribute).Name); - HelpBox_Layout(warning, MessageType.Warning, context: target); - } - else if (!Field_Layout(value, ObjectNames.NicifyVariableName(property.Name))) - { - string warning = string.Format("{0} doesn't support {1} types", typeof(ShowNativePropertyAttribute).Name, property.PropertyType.Name); - HelpBox_Layout(warning, MessageType.Warning, context: target); - } - } - - public static void NonSerializedField_Layout(UnityEngine.Object target, FieldInfo field) - { - object value = field.GetValue(target); - - if (value == null) - { - string warning = string.Format("{0} is null. {1} doesn't support reference types with null value", ObjectNames.NicifyVariableName(field.Name), typeof(ShowNonSerializedFieldAttribute).Name); - HelpBox_Layout(warning, MessageType.Warning, context: target); - } - else if (!Field_Layout(value, ObjectNames.NicifyVariableName(field.Name))) - { - string warning = string.Format("{0} doesn't support {1} types", typeof(ShowNonSerializedFieldAttribute).Name, field.FieldType.Name); - HelpBox_Layout(warning, MessageType.Warning, context: target); - } - } - - public static void HorizontalLine(Rect rect, float height, Color color) - { - rect.height = height; - EditorGUI.DrawRect(rect, color); - } - - public static void HelpBox(Rect rect, string message, MessageType type, UnityEngine.Object context = null, bool logToConsole = false) - { - EditorGUI.HelpBox(rect, message, type); - - if (logToConsole) - { - DebugLogMessage(message, type, context); - } - } - - public static void HelpBox_Layout(string message, MessageType type, UnityEngine.Object context = null, bool logToConsole = false) - { - EditorGUILayout.HelpBox(message, type); - - if (logToConsole) - { - DebugLogMessage(message, type, context); - } - } - - public static bool Field_Layout(object value, string label) - { - using (new EditorGUI.DisabledScope(disabled: true)) - { - bool isDrawn = true; - Type valueType = value.GetType(); - - if (valueType == typeof(bool)) - { - EditorGUILayout.Toggle(label, (bool)value); - } - else if (valueType == typeof(short)) - { - EditorGUILayout.IntField(label, (short)value); - } - else if (valueType == typeof(ushort)) - { - EditorGUILayout.IntField(label, (ushort)value); - } - else if (valueType == typeof(int)) - { - EditorGUILayout.IntField(label, (int)value); - } - else if (valueType == typeof(uint)) - { - EditorGUILayout.LongField(label, (uint)value); - } - else if (valueType == typeof(long)) - { - EditorGUILayout.LongField(label, (long)value); - } - else if (valueType == typeof(ulong)) - { - EditorGUILayout.TextField(label, ((ulong)value).ToString()); - } - else if (valueType == typeof(float)) - { - EditorGUILayout.FloatField(label, (float)value); - } - else if (valueType == typeof(double)) - { - EditorGUILayout.DoubleField(label, (double)value); - } - else if (valueType == typeof(string)) - { - EditorGUILayout.TextField(label, (string)value); - } - else if (valueType == typeof(Vector2)) - { - EditorGUILayout.Vector2Field(label, (Vector2)value); - } - else if (valueType == typeof(Vector3)) - { - EditorGUILayout.Vector3Field(label, (Vector3)value); - } - else if (valueType == typeof(Vector4)) - { - EditorGUILayout.Vector4Field(label, (Vector4)value); - } - else if (valueType == typeof(Vector2Int)) - { - EditorGUILayout.Vector2IntField(label, (Vector2Int)value); - } - else if (valueType == typeof(Vector3Int)) - { - EditorGUILayout.Vector3IntField(label, (Vector3Int)value); - } - else if (valueType == typeof(Color)) - { - EditorGUILayout.ColorField(label, (Color)value); - } - else if (valueType == typeof(Bounds)) - { - EditorGUILayout.BoundsField(label, (Bounds)value); - } - else if (valueType == typeof(Rect)) - { - EditorGUILayout.RectField(label, (Rect)value); - } - else if (valueType == typeof(RectInt)) - { - EditorGUILayout.RectIntField(label, (RectInt)value); - } - else if (typeof(UnityEngine.Object).IsAssignableFrom(valueType)) - { - EditorGUILayout.ObjectField(label, (UnityEngine.Object)value, valueType, true); - } - else if (valueType.BaseType == typeof(Enum)) - { - EditorGUILayout.EnumPopup(label, (Enum)value); - } - else if (valueType.BaseType == typeof(System.Reflection.TypeInfo)) - { - EditorGUILayout.TextField(label, value.ToString()); - } - else - { - isDrawn = false; - } - - return isDrawn; - } - } - - private static void DebugLogMessage(string message, MessageType type, UnityEngine.Object context) - { - switch (type) - { - case MessageType.None: - case MessageType.Info: - Debug.Log(message, context); - break; - case MessageType.Warning: - Debug.LogWarning(message, context); - break; - case MessageType.Error: - Debug.LogError(message, context); - break; - } - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/NaughtyEditorGUI.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/NaughtyEditorGUI.cs.meta deleted file mode 100644 index 704d3e5e..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/NaughtyEditorGUI.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 6ff27ff7705d6064e935bb2159a1b453 -timeCreated: 1510926159 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/PropertyUtility.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/PropertyUtility.cs deleted file mode 100644 index e42db4bd..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/PropertyUtility.cs +++ /dev/null @@ -1,374 +0,0 @@ -using UnityEditor; -using System.Reflection; -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -namespace NaughtyAttributes.Editor -{ - public static class PropertyUtility - { - public static T GetAttribute(SerializedProperty property) where T : class - { - T[] attributes = GetAttributes(property); - return (attributes.Length > 0) ? attributes[0] : null; - } - - public static T[] GetAttributes(SerializedProperty property) where T : class - { - FieldInfo fieldInfo = ReflectionUtility.GetField(GetTargetObjectWithProperty(property), property.name); - if (fieldInfo == null) - { - return new T[] { }; - } - - return (T[])fieldInfo.GetCustomAttributes(typeof(T), true); - } - - public static GUIContent GetLabel(SerializedProperty property) - { - LabelAttribute labelAttribute = GetAttribute(property); - string labelText = (labelAttribute == null) - ? property.displayName - : labelAttribute.Label; - - GUIContent label = new GUIContent(labelText); - return label; - } - - public static void CallOnValueChangedCallbacks(SerializedProperty property) - { - OnValueChangedAttribute[] onValueChangedAttributes = GetAttributes(property); - if (onValueChangedAttributes.Length == 0) - { - return; - } - - object target = GetTargetObjectWithProperty(property); - property.serializedObject.ApplyModifiedProperties(); // We must apply modifications so that the new value is updated in the serialized object - - foreach (var onValueChangedAttribute in onValueChangedAttributes) - { - MethodInfo callbackMethod = ReflectionUtility.GetMethod(target, onValueChangedAttribute.CallbackName); - if (callbackMethod != null && - callbackMethod.ReturnType == typeof(void) && - callbackMethod.GetParameters().Length == 0) - { - callbackMethod.Invoke(target, new object[] { }); - } - else - { - string warning = string.Format( - "{0} can invoke only methods with 'void' return type and 0 parameters", - onValueChangedAttribute.GetType().Name); - - Debug.LogWarning(warning, property.serializedObject.targetObject); - } - } - } - - public static bool IsEnabled(SerializedProperty property) - { - ReadOnlyAttribute readOnlyAttribute = GetAttribute(property); - if (readOnlyAttribute != null) - { - return false; - } - - EnableIfAttributeBase enableIfAttribute = GetAttribute(property); - if (enableIfAttribute == null) - { - return true; - } - - object target = GetTargetObjectWithProperty(property); - - // deal with enum conditions - if (enableIfAttribute.EnumValue != null) - { - Enum value = GetEnumValue(target, enableIfAttribute.Conditions[0]); - if (value != null) - { - bool matched = value.GetType().GetCustomAttribute() == null - ? enableIfAttribute.EnumValue.Equals(value) - : value.HasFlag(enableIfAttribute.EnumValue); - - return matched != enableIfAttribute.Inverted; - } - - string message = enableIfAttribute.GetType().Name + " needs a valid enum field, property or method name to work"; - Debug.LogWarning(message, property.serializedObject.targetObject); - - return false; - } - - // deal with normal conditions - List conditionValues = GetConditionValues(target, enableIfAttribute.Conditions); - if (conditionValues.Count > 0) - { - bool enabled = GetConditionsFlag(conditionValues, enableIfAttribute.ConditionOperator, enableIfAttribute.Inverted); - return enabled; - } - else - { - string message = enableIfAttribute.GetType().Name + " needs a valid boolean condition field, property or method name to work"; - Debug.LogWarning(message, property.serializedObject.targetObject); - - return false; - } - } - - public static bool IsVisible(SerializedProperty property) - { - ShowIfAttributeBase showIfAttribute = GetAttribute(property); - if (showIfAttribute == null) - { - return true; - } - - object target = GetTargetObjectWithProperty(property); - - // deal with enum conditions - if (showIfAttribute.EnumValue != null) - { - Enum value = GetEnumValue(target, showIfAttribute.Conditions[0]); - if (value != null) - { - bool matched = value.GetType().GetCustomAttribute() == null - ? showIfAttribute.EnumValue.Equals(value) - : value.HasFlag(showIfAttribute.EnumValue); - - return matched != showIfAttribute.Inverted; - } - - string message = showIfAttribute.GetType().Name + " needs a valid enum field, property or method name to work"; - Debug.LogWarning(message, property.serializedObject.targetObject); - - return false; - } - - // deal with normal conditions - List conditionValues = GetConditionValues(target, showIfAttribute.Conditions); - if (conditionValues.Count > 0) - { - bool enabled = GetConditionsFlag(conditionValues, showIfAttribute.ConditionOperator, showIfAttribute.Inverted); - return enabled; - } - else - { - string message = showIfAttribute.GetType().Name + " needs a valid boolean condition field, property or method name to work"; - Debug.LogWarning(message, property.serializedObject.targetObject); - - return false; - } - } - - /// - /// Gets an enum value from reflection. - /// - /// The target object. - /// Name of a field, property, or method that returns an enum. - /// Null if can't find an enum value. - internal static Enum GetEnumValue(object target, string enumName) - { - FieldInfo enumField = ReflectionUtility.GetField(target, enumName); - if (enumField != null && enumField.FieldType.IsSubclassOf(typeof(Enum))) - { - return (Enum)enumField.GetValue(target); - } - - PropertyInfo enumProperty = ReflectionUtility.GetProperty(target, enumName); - if (enumProperty != null && enumProperty.PropertyType.IsSubclassOf(typeof(Enum))) - { - return (Enum)enumProperty.GetValue(target); - } - - MethodInfo enumMethod = ReflectionUtility.GetMethod(target, enumName); - if (enumMethod != null && enumMethod.ReturnType.IsSubclassOf(typeof(Enum))) - { - return (Enum)enumMethod.Invoke(target, null); - } - - return null; - } - - internal static List GetConditionValues(object target, string[] conditions) - { - List conditionValues = new List(); - foreach (var condition in conditions) - { - FieldInfo conditionField = ReflectionUtility.GetField(target, condition); - if (conditionField != null && - conditionField.FieldType == typeof(bool)) - { - conditionValues.Add((bool)conditionField.GetValue(target)); - } - - PropertyInfo conditionProperty = ReflectionUtility.GetProperty(target, condition); - if (conditionProperty != null && - conditionProperty.PropertyType == typeof(bool)) - { - conditionValues.Add((bool)conditionProperty.GetValue(target)); - } - - MethodInfo conditionMethod = ReflectionUtility.GetMethod(target, condition); - if (conditionMethod != null && - conditionMethod.ReturnType == typeof(bool) && - conditionMethod.GetParameters().Length == 0) - { - conditionValues.Add((bool)conditionMethod.Invoke(target, null)); - } - } - - return conditionValues; - } - - internal static bool GetConditionsFlag(List conditionValues, EConditionOperator conditionOperator, bool invert) - { - bool flag; - if (conditionOperator == EConditionOperator.And) - { - flag = true; - foreach (var value in conditionValues) - { - flag = flag && value; - } - } - else - { - flag = false; - foreach (var value in conditionValues) - { - flag = flag || value; - } - } - - if (invert) - { - flag = !flag; - } - - return flag; - } - - public static Type GetPropertyType(SerializedProperty property) - { - object obj = GetTargetObjectOfProperty(property); - Type objType = obj.GetType(); - - return objType; - } - - /// - /// Gets the object the property represents. - /// - /// - /// - public static object GetTargetObjectOfProperty(SerializedProperty property) - { - if (property == null) - { - return null; - } - - string path = property.propertyPath.Replace(".Array.data[", "["); - object obj = property.serializedObject.targetObject; - string[] elements = path.Split('.'); - - foreach (var element in elements) - { - if (element.Contains("[")) - { - string elementName = element.Substring(0, element.IndexOf("[")); - int index = Convert.ToInt32(element.Substring(element.IndexOf("[")).Replace("[", "").Replace("]", "")); - obj = GetValue_Imp(obj, elementName, index); - } - else - { - obj = GetValue_Imp(obj, element); - } - } - - return obj; - } - - /// - /// Gets the object that the property is a member of - /// - /// - /// - public static object GetTargetObjectWithProperty(SerializedProperty property) - { - string path = property.propertyPath.Replace(".Array.data[", "["); - object obj = property.serializedObject.targetObject; - string[] elements = path.Split('.'); - - for (int i = 0; i < elements.Length - 1; i++) - { - string element = elements[i]; - if (element.Contains("[")) - { - string elementName = element.Substring(0, element.IndexOf("[")); - int index = Convert.ToInt32(element.Substring(element.IndexOf("[")).Replace("[", "").Replace("]", "")); - obj = GetValue_Imp(obj, elementName, index); - } - else - { - obj = GetValue_Imp(obj, element); - } - } - - return obj; - } - - private static object GetValue_Imp(object source, string name) - { - if (source == null) - { - return null; - } - - Type type = source.GetType(); - - while (type != null) - { - FieldInfo field = type.GetField(name, BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance); - if (field != null) - { - return field.GetValue(source); - } - - PropertyInfo property = type.GetProperty(name, BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance | BindingFlags.IgnoreCase); - if (property != null) - { - return property.GetValue(source, null); - } - - type = type.BaseType; - } - - return null; - } - - private static object GetValue_Imp(object source, string name, int index) - { - IEnumerable enumerable = GetValue_Imp(source, name) as IEnumerable; - if (enumerable == null) - { - return null; - } - - IEnumerator enumerator = enumerable.GetEnumerator(); - for (int i = 0; i <= index; i++) - { - if (!enumerator.MoveNext()) - { - return null; - } - } - - return enumerator.Current; - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/PropertyUtility.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/PropertyUtility.cs.meta deleted file mode 100644 index dce67c63..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/PropertyUtility.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 312eedcb79c7a5542b87c0b848e3e2fa -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/ReflectionUtility.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/ReflectionUtility.cs deleted file mode 100644 index 57d28eae..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/ReflectionUtility.cs +++ /dev/null @@ -1,128 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; -using UnityEngine; - -namespace NaughtyAttributes.Editor -{ - public static class ReflectionUtility - { - public static IEnumerable GetAllFields(object target, Func predicate) - { - if (target == null) - { - Debug.LogError("The target object is null. Check for missing scripts."); - yield break; - } - - List types = GetSelfAndBaseTypes(target); - - for (int i = types.Count - 1; i >= 0; i--) - { - IEnumerable fieldInfos = types[i] - .GetFields(BindingFlags.Instance | BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.DeclaredOnly) - .Where(predicate); - - foreach (var fieldInfo in fieldInfos) - { - yield return fieldInfo; - } - } - } - - public static IEnumerable GetAllProperties(object target, Func predicate) - { - if (target == null) - { - Debug.LogError("The target object is null. Check for missing scripts."); - yield break; - } - - List types = GetSelfAndBaseTypes(target); - - for (int i = types.Count - 1; i >= 0; i--) - { - IEnumerable propertyInfos = types[i] - .GetProperties(BindingFlags.Instance | BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.DeclaredOnly) - .Where(predicate); - - foreach (var propertyInfo in propertyInfos) - { - yield return propertyInfo; - } - } - } - - public static IEnumerable GetAllMethods(object target, Func predicate) - { - if (target == null) - { - Debug.LogError("The target object is null. Check for missing scripts."); - yield break; - } - - List types = GetSelfAndBaseTypes(target); - - for (int i = types.Count - 1; i >= 0; i--) - { - IEnumerable methodInfos = types[i] - .GetMethods(BindingFlags.Instance | BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.DeclaredOnly) - .Where(predicate); - - foreach (var methodInfo in methodInfos) - { - yield return methodInfo; - } - } - } - - public static FieldInfo GetField(object target, string fieldName) - { - return GetAllFields(target, f => f.Name.Equals(fieldName, StringComparison.Ordinal)).FirstOrDefault(); - } - - public static PropertyInfo GetProperty(object target, string propertyName) - { - return GetAllProperties(target, p => p.Name.Equals(propertyName, StringComparison.Ordinal)).FirstOrDefault(); - } - - public static MethodInfo GetMethod(object target, string methodName) - { - return GetAllMethods(target, m => m.Name.Equals(methodName, StringComparison.Ordinal)).FirstOrDefault(); - } - - public static Type GetListElementType(Type listType) - { - if (listType.IsGenericType) - { - return listType.GetGenericArguments()[0]; - } - else - { - return listType.GetElementType(); - } - } - - /// - /// Get type and all base types of target, sorted as following: - /// [target's type, base type, base's base type, ...] - /// - /// - /// - private static List GetSelfAndBaseTypes(object target) - { - List types = new List() - { - target.GetType() - }; - - while (types.Last().BaseType != null) - { - types.Add(types.Last().BaseType); - } - - return types; - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/ReflectionUtility.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/ReflectionUtility.cs.meta deleted file mode 100644 index 73b6ea9f..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/ReflectionUtility.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 1d86c581f02a55f458e36bf7e81e3084 -timeCreated: 1520258793 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/SavedBool.cs b/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/SavedBool.cs deleted file mode 100644 index e463f498..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/SavedBool.cs +++ /dev/null @@ -1,34 +0,0 @@ -using UnityEditor; - -namespace NaughtyAttributes.Editor -{ - internal class SavedBool - { - private bool _value; - private string _name; - - public bool Value - { - get - { - return _value; - } - set - { - if (_value == value) - { - return; - } - - _value = value; - EditorPrefs.SetBool(_name, value); - } - } - - public SavedBool(string name, bool value) - { - _name = name; - _value = EditorPrefs.GetBool(name, value); - } - } -} \ No newline at end of file diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/SavedBool.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/SavedBool.cs.meta deleted file mode 100644 index aebf0075..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Editor/Utility/SavedBool.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 18613afe66b0c0344a2be5f430bf965a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test.meta deleted file mode 100644 index 6eca4f65..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: ce2bd76b5676a434bb8a84254f67f1dc -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/AnimatorParamTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/AnimatorParamTest.cs deleted file mode 100644 index c5a371cb..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/AnimatorParamTest.cs +++ /dev/null @@ -1,53 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class AnimatorParamTest : MonoBehaviour - { - public Animator animator0; - - [AnimatorParam("animator0")] - public int hash0; - - [AnimatorParam("animator0")] - public string name0; - - public AnimatorParamNest1 nest1; - - [Button("Log 'hash0' and 'name0'")] - private void TestLog() - { - Debug.Log($"hash0 = {hash0}"); - Debug.Log($"name0 = {name0}"); - Debug.Log($"Animator.StringToHash(name0) = {Animator.StringToHash(name0)}"); - } - } - - [System.Serializable] - public class AnimatorParamNest1 - { - public Animator animator1; - private Animator Animator1 => animator1; - - [AnimatorParam("Animator1", AnimatorControllerParameterType.Bool)] - public int hash1; - - [AnimatorParam("Animator1", AnimatorControllerParameterType.Float)] - public string name1; - - public AnimatorParamNest2 nest2; - } - - [System.Serializable] - public class AnimatorParamNest2 - { - public Animator animator2; - private Animator GetAnimator2() => animator2; - - [AnimatorParam("GetAnimator2", AnimatorControllerParameterType.Int)] - public int hash1; - - [AnimatorParam("GetAnimator2", AnimatorControllerParameterType.Trigger)] - public string name1; - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/AnimatorParamTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/AnimatorParamTest.cs.meta deleted file mode 100644 index a8daa631..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/AnimatorParamTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 9bff20ccdde00fc49a62bad6a4ef9982 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/BoxGroupTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/BoxGroupTest.cs deleted file mode 100644 index 789d1f8b..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/BoxGroupTest.cs +++ /dev/null @@ -1,32 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class BoxGroupTest : MonoBehaviour - { - [BoxGroup("Integers")] - public int int0; - [BoxGroup("Integers")] - public int int1; - - [BoxGroup("Floats")] - public float float0; - [BoxGroup("Floats")] - public float float1; - - [BoxGroup("Sliders")] - [MinMaxSlider(0, 1)] - public Vector2 slider0; - [BoxGroup("Sliders")] - [MinMaxSlider(0, 1)] - public Vector2 slider1; - - public string str0; - public string str1; - - [BoxGroup] - public Transform trans0; - [BoxGroup] - public Transform trans1; - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/BoxGroupTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/BoxGroupTest.cs.meta deleted file mode 100644 index 0c5ee54f..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/BoxGroupTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 3920f5ea384951b4990e4d9e8032d12e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/ButtonTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/ButtonTest.cs deleted file mode 100644 index d7f6f04d..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/ButtonTest.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System.Collections; -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class ButtonTest : MonoBehaviour - { - public int myInt; - - [Button(enabledMode: EButtonEnableMode.Always)] - private void IncrementMyInt() - { - myInt++; - } - - [Button("Decrement My Int", EButtonEnableMode.Editor)] - private void DecrementMyInt() - { - myInt--; - } - - [Button(enabledMode: EButtonEnableMode.Playmode)] - private void LogMyInt(string prefix = "MyInt = ") - { - Debug.Log(prefix + myInt); - } - - [Button("StartCoroutine")] - private IEnumerator IncrementMyIntCoroutine() - { - int seconds = 5; - for (int i = 0; i < seconds; i++) - { - myInt++; - yield return new WaitForSeconds(1.0f); - } - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/ButtonTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/ButtonTest.cs.meta deleted file mode 100644 index 1d7d58f6..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/ButtonTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b592f12a9f69ac3408f6f870762232c7 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/CurveRangeTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/CurveRangeTest.cs deleted file mode 100644 index f33f2d21..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/CurveRangeTest.cs +++ /dev/null @@ -1,37 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class CurveRangeTest : MonoBehaviour - { - [CurveRange(0f, 0f, 1f, 1f, EColor.Yellow)] - public AnimationCurve[] curves; - - [CurveRange(-1, -1, 1, 1, EColor.Red)] - public AnimationCurve curve; - - [CurveRange(EColor.Orange)] - public AnimationCurve curve1; - - [CurveRange(0, 0, 10, 10)] - public AnimationCurve curve2; - - public CurveRangeNest1 nest1; - - [System.Serializable] - public class CurveRangeNest1 - { - [CurveRange(0, 0, 1, 1, EColor.Green)] - public AnimationCurve curve; - - public CurveRangeNest2 nest2; - } - - [System.Serializable] - public class CurveRangeNest2 - { - [CurveRange(0, 0, 5, 5, EColor.Blue)] - public AnimationCurve curve; - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/CurveRangeTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/CurveRangeTest.cs.meta deleted file mode 100644 index e43f8f03..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/CurveRangeTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6587b100d001e7e46b9aaae7f1180b40 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/DisableIfTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/DisableIfTest.cs deleted file mode 100644 index 6913166c..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/DisableIfTest.cs +++ /dev/null @@ -1,120 +0,0 @@ -using System; -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class DisableIfTest : MonoBehaviour - { - public bool disable1; - public bool disable2; - public DisableIfEnum enum1; - [EnumFlags] public DisableIfEnumFlag enum2; - - [DisableIf(EConditionOperator.And, "disable1", "disable2")] - [ReorderableList] - public int[] disableIfAll; - - [DisableIf(EConditionOperator.Or, "disable1", "disable2")] - [ReorderableList] - public int[] disableIfAny; - - [DisableIf("enum1", DisableIfEnum.Case0)] - [ReorderableList] - public int[] disableIfEnum; - - [DisableIf("enum2", DisableIfEnumFlag.Flag0)] - [ReorderableList] - public int[] disableIfEnumFlag; - - [DisableIf("enum2", DisableIfEnumFlag.Flag0 | DisableIfEnumFlag.Flag1)] - [ReorderableList] - public int[] disableIfEnumFlagMulti; - - public DisableIfNest1 nest1; - } - - [System.Serializable] - public class DisableIfNest1 - { - public bool disable1; - public bool disable2; - public DisableIfEnum enum1; - [EnumFlags] public DisableIfEnumFlag enum2; - public bool Disable1 { get { return disable1; } } - public bool Disable2 { get { return disable2; } } - public DisableIfEnum Enum1 { get { return enum1; } } - public DisableIfEnumFlag Enum2 { get { return enum2; } } - - [DisableIf(EConditionOperator.And, "Disable1", "Disable2")] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public int disableIfAll = 1; - - [DisableIf(EConditionOperator.Or, "Disable1", "Disable2")] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public int disableIfAny = 2; - - [DisableIf("Enum1", DisableIfEnum.Case1)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public int disableIfEnum = 3; - - [DisableIf("Enum2", DisableIfEnumFlag.Flag0)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public int disableIfEnumFlag; - - [DisableIf("Enum2", DisableIfEnumFlag.Flag0 | DisableIfEnumFlag.Flag1)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public int disableIfEnumFlagMulti; - - public DisableIfNest2 nest2; - } - - [System.Serializable] - public class DisableIfNest2 - { - public bool disable1; - public bool disable2; - public DisableIfEnum enum1; - [EnumFlags] public DisableIfEnumFlag enum2; - public bool GetDisable1() { return disable1; } - public bool GetDisable2() { return disable2; } - public DisableIfEnum GetEnum1() { return enum1; } - public DisableIfEnumFlag GetEnum2() { return enum2; } - - [DisableIf(EConditionOperator.And, "GetDisable1", "GetDisable2")] - [MinMaxSlider(0.0f, 1.0f)] // AllowNesting attribute is not needed, because the field is already marked with a custom naughty property drawer - public Vector2 enableIfAll = new Vector2(0.25f, 0.75f); - - [DisableIf(EConditionOperator.Or, "GetDisable1", "GetDisable2")] - [MinMaxSlider(0.0f, 1.0f)] // AllowNesting attribute is not needed, because the field is already marked with a custom naughty property drawer - public Vector2 enableIfAny = new Vector2(0.25f, 0.75f); - - [DisableIf("GetEnum1", DisableIfEnum.Case2)] - [MinMaxSlider(0.0f, 1.0f)] // AllowNesting attribute is not needed, because the field is already marked with a custom naughty property drawer - public Vector2 enableIfEnum = new Vector2(0.25f, 0.75f); - - [DisableIf("GetEnum2", DisableIfEnumFlag.Flag0)] - [MinMaxSlider(0.0f, 1.0f)] // AllowNesting attribute is not needed, because the field is already marked with a custom naughty property drawer - public Vector2 disableIfEnumFlag; - - [DisableIf("GetEnum2", DisableIfEnumFlag.Flag0 | DisableIfEnumFlag.Flag1)] - [MinMaxSlider(0.0f, 1.0f)] // AllowNesting attribute is not needed, because the field is already marked with a custom naughty property drawer - public Vector2 disableIfEnumFlagMulti; - } - - [System.Serializable] - public enum DisableIfEnum - { - Case0, - Case1, - Case2 - } - - [Flags] - public enum DisableIfEnumFlag - { - Flag0 = 1, - Flag1 = 2, - Flag2 = 4, - Flag3 = 8 - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/DisableIfTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/DisableIfTest.cs.meta deleted file mode 100644 index c3a1e7af..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/DisableIfTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 0e48a088cb96287448c3be58932bfcb7 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/DropdownTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/DropdownTest.cs deleted file mode 100644 index 723eca8f..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/DropdownTest.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; -using System.Collections.Generic; - -namespace NaughtyAttributes.Test -{ - public class DropdownTest : MonoBehaviour - { - [Dropdown("intValues")] - public int intValue; - -#pragma warning disable 414 - private int[] intValues = new int[] { 1, 2, 3 }; -#pragma warning restore 414 - - public DropdownNest1 nest1; - } - - [System.Serializable] - public class DropdownNest1 - { - [Dropdown("StringValues")] - public string stringValue; - - private List StringValues { get { return new List() { "A", "B", "C" }; } } - - public DropdownNest2 nest2; - } - - [System.Serializable] - public class DropdownNest2 - { - [Dropdown("GetVectorValues")] - public Vector3 vectorValue; - - private DropdownList GetVectorValues() - { - return new DropdownList() - { - { "Right", Vector3.right }, - { "Up", Vector3.up }, - { "Forward", Vector3.forward } - }; - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/DropdownTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/DropdownTest.cs.meta deleted file mode 100644 index ec7fa241..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/DropdownTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 3855e37cd6b01194e8166573c7c4b37d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/EnableIfTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/EnableIfTest.cs deleted file mode 100644 index 6e744f51..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/EnableIfTest.cs +++ /dev/null @@ -1,120 +0,0 @@ -using System; -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class EnableIfTest : MonoBehaviour - { - public bool enable1; - public bool enable2; - public EnableIfEnum enum1; - [EnumFlags] public EnableIfEnumFlag enum2; - - [EnableIf(EConditionOperator.And, "enable1", "enable2")] - [ReorderableList] - public int[] enableIfAll; - - [EnableIf(EConditionOperator.Or, "enable1", "enable2")] - [ReorderableList] - public int[] enableIfAny; - - [EnableIf("enum1", EnableIfEnum.Case0)] - [ReorderableList] - public int[] enableIfEnum; - - [EnableIf("enum2", EnableIfEnumFlag.Flag0)] - [ReorderableList] - public int[] enableIfEnumFlag; - - [EnableIf("enum2", EnableIfEnumFlag.Flag0 | EnableIfEnumFlag.Flag1)] - [ReorderableList] - public int[] enableIfEnumFlagMulti; - - public EnableIfNest1 nest1; - } - - [System.Serializable] - public class EnableIfNest1 - { - public bool enable1; - public bool enable2; - public EnableIfEnum enum1; - [EnumFlags] public EnableIfEnumFlag enum2; - public bool Enable1 { get { return enable1; } } - public bool Enable2 { get { return enable2; } } - public EnableIfEnum Enum1 { get { return enum1; } } - public EnableIfEnumFlag Enum2 { get { return enum2; } } - - [EnableIf(EConditionOperator.And, "Enable1", "Enable2")] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public int enableIfAll; - - [EnableIf(EConditionOperator.Or, "Enable1", "Enable2")] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public int enableIfAny; - - [EnableIf("Enum1", EnableIfEnum.Case1)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public int enableIfEnum; - - [EnableIf("Enum2", EnableIfEnumFlag.Flag0)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public int enableIfEnumFlag; - - [EnableIf("Enum2", EnableIfEnumFlag.Flag0 | EnableIfEnumFlag.Flag1)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public int enableIfEnumFlagMulti; - - public EnableIfNest2 nest2; - } - - [System.Serializable] - public class EnableIfNest2 - { - public bool enable1; - public bool enable2; - public EnableIfEnum enum1; - [EnumFlags] public EnableIfEnumFlag enum2; - public bool GetEnable1() { return enable1; } - public bool GetEnable2() { return enable2; } - public EnableIfEnum GetEnum1() { return enum1; } - public EnableIfEnumFlag GetEnum2() { return enum2; } - - [EnableIf(EConditionOperator.And, "GetEnable1", "GetEnable2")] - [MinMaxSlider(0.0f, 1.0f)] // AllowNesting attribute is not needed, because the field is already marked with a custom naughty property drawer - public Vector2 enableIfAll = new Vector2(0.25f, 0.75f); - - [EnableIf(EConditionOperator.Or, "GetEnable1", "GetEnable2")] - [MinMaxSlider(0.0f, 1.0f)] // AllowNesting attribute is not needed, because the field is already marked with a custom naughty property drawer - public Vector2 enableIfAny = new Vector2(0.25f, 0.75f); - - [EnableIf("GetEnum1", EnableIfEnum.Case2)] - [MinMaxSlider(0.0f, 1.0f)] // AllowNesting attribute is not needed, because the field is already marked with a custom naughty property drawer - public Vector2 enableIfEnum = new Vector2(0.25f, 0.75f); - - [EnableIf("GetEnum2", EnableIfEnumFlag.Flag0)] - [MinMaxSlider(0.0f, 1.0f)] // AllowNesting attribute is not needed, because the field is already marked with a custom naughty property drawer - public Vector2 enableIfEnumFlag; - - [EnableIf("GetEnum2", EnableIfEnumFlag.Flag0 | EnableIfEnumFlag.Flag1)] - [MinMaxSlider(0.0f, 1.0f)] // AllowNesting attribute is not needed, because the field is already marked with a custom naughty property drawer - public Vector2 enableIfEnumFlagMulti; - } - - [System.Serializable] - public enum EnableIfEnum - { - Case0, - Case1, - Case2 - } - - [Flags] - public enum EnableIfEnumFlag - { - Flag0 = 1, - Flag1 = 2, - Flag2 = 4, - Flag3 = 8 - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/EnableIfTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/EnableIfTest.cs.meta deleted file mode 100644 index c22fe7b7..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/EnableIfTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: bed506d8be3a10f45bec4bf2237bec87 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/EnumFlagsTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/EnumFlagsTest.cs deleted file mode 100644 index 94723346..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/EnumFlagsTest.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public enum TestEnum - { - None = 0, - B = 1 << 0, - C = 1 << 1, - D = 1 << 2, - E = 1 << 3, - F = 1 << 4, - All = ~0 - } - - public class EnumFlagsTest : MonoBehaviour - { - [EnumFlags] - public TestEnum flags0; - - public EnumFlagsNest1 nest1; - } - - [System.Serializable] - public class EnumFlagsNest1 - { - [EnumFlags] - public TestEnum flags1; - - public EnumFlagsNest2 nest2; - } - - [System.Serializable] - public class EnumFlagsNest2 - { - [EnumFlags] - public TestEnum flags2; - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/EnumFlagsTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/EnumFlagsTest.cs.meta deleted file mode 100644 index b5486752..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/EnumFlagsTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7b7f6b84ce0d7674d8a386fde729279c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/ExpandableTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/ExpandableTest.cs deleted file mode 100644 index 8c08b8c7..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/ExpandableTest.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class ExpandableTest : MonoBehaviour - { - // See #294 - public int precedingField = 5; - - [Expandable] - public ScriptableObject obj0; - - public ExpandableScriptableObjectNest1 nest1; - } - - [System.Serializable] - public class ExpandableScriptableObjectNest1 - { - [Expandable] - public ScriptableObject obj1; - - public ExpandableScriptableObjectNest2 nest2; - } - - [System.Serializable] - public class ExpandableScriptableObjectNest2 - { - [Expandable] - public ScriptableObject obj2; - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/ExpandableTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/ExpandableTest.cs.meta deleted file mode 100644 index ffa82d1a..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/ExpandableTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 64c4c9aee2b494d44be9bb0b7f12ed7c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/FoldoutTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/FoldoutTest.cs deleted file mode 100644 index c171cc84..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/FoldoutTest.cs +++ /dev/null @@ -1,32 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class FoldoutTest : MonoBehaviour - { - [Foldout("Integers")] - public int int0; - [Foldout("Integers")] - public int int1; - - [Foldout("Floats")] - public float float0; - [Foldout("Floats")] - public float float1; - - [Foldout("Sliders")] - [MinMaxSlider(0, 1)] - public Vector2 slider0; - [Foldout("Sliders")] - [MinMaxSlider(0, 1)] - public Vector2 slider1; - - public string str0; - public string str1; - - [Foldout("Transforms")] - public Transform trans0; - [Foldout("Transforms")] - public Transform trans1; - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/FoldoutTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/FoldoutTest.cs.meta deleted file mode 100644 index 8c72e06b..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/FoldoutTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 3b437215d92efa74ea85ff726ca0dd09 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/HideIfTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/HideIfTest.cs deleted file mode 100644 index ec5c7c1a..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/HideIfTest.cs +++ /dev/null @@ -1,119 +0,0 @@ -using System; -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class HideIfTest : MonoBehaviour - { - public bool hide1; - public bool hide2; - public HideIfEnum enum1; - [EnumFlags] public HideIfEnumFlag enum2; - - [HideIf(EConditionOperator.And, "hide1", "hide2")] - [ReorderableList] - public int[] hideIfAll; - - [HideIf(EConditionOperator.Or, "hide1", "hide2")] - [ReorderableList] - public int[] hideIfAny; - - [HideIf("enum1", HideIfEnum.Case0)] - [ReorderableList] - public int[] hideIfEnum; - - [HideIf("enum2", HideIfEnumFlag.Flag0)] - [ReorderableList] - public int[] hideIfEnumFlag; - - [HideIf("enum2", HideIfEnumFlag.Flag0 | HideIfEnumFlag.Flag1)] - [ReorderableList] - public int[] hideIfEnumFlagMulti; - - public HideIfNest1 nest1; - } - - [System.Serializable] - public class HideIfNest1 - { - public bool hide1; - public bool hide2; - public HideIfEnum enum1; - [EnumFlags] public HideIfEnumFlag enum2; - public bool Hide1 { get { return hide1; } } - public bool Hide2 { get { return hide2; } } - public HideIfEnum Enum1 { get { return enum1; } } - public HideIfEnumFlag Enum2 { get { return enum2; } } - - [HideIf(EConditionOperator.And, "Hide1", "Hide2")] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public int hideIfAll; - - [HideIf(EConditionOperator.Or, "Hide1", "Hide2")] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public int hideIfAny; - - [HideIf("Enum1", HideIfEnum.Case1)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public int hideIfEnum; - - [HideIf("Enum2", HideIfEnumFlag.Flag0)] - [AllowNesting] - public int hideIfEnumFlag; - - [HideIf("Enum2", HideIfEnumFlag.Flag0 | HideIfEnumFlag.Flag1)] - [AllowNesting] - public int hideIfEnumFlagMulti; - - public HideIfNest2 nest2; - } - - [System.Serializable] - public class HideIfNest2 - { - public bool hide1; - public bool hide2; - public HideIfEnum enum1; - [EnumFlags] public HideIfEnumFlag enum2; - public bool GetHide1() { return hide1; } - public bool GetHide2() { return hide2; } - public HideIfEnum GetEnum1() { return enum1; } - public HideIfEnumFlag GetEnum2() { return enum2; } - - [HideIf(EConditionOperator.And, "GetHide1", "GetHide2")] - [MinMaxSlider(0.0f, 1.0f)] // AllowNesting attribute is not needed, because the field is already marked with a custom naughty property drawer - public Vector2 hideIfAll = new Vector2(0.25f, 0.75f); - - [HideIf(EConditionOperator.Or, "GetHide1", "GetHide2")] - [MinMaxSlider(0.0f, 1.0f)] // AllowNesting attribute is not needed, because the field is already marked with a custom naughty property drawer - public Vector2 hideIfAny = new Vector2(0.25f, 0.75f); - - [HideIf("GetEnum1", HideIfEnum.Case2)] - [MinMaxSlider(0.0f, 1.0f)] // AllowNesting attribute is not needed, because the field is already marked with a custom naughty property drawer - public Vector2 hideIfEnum = new Vector2(0.25f, 0.75f); - - [HideIf("GetEnum2", HideIfEnumFlag.Flag0)] - [MinMaxSlider(0.0f, 1.0f)] // AllowNesting attribute is not needed, because the field is already marked with a custom naughty property drawer - public Vector2 hideIfEnumFlag; - - [HideIf("GetEnum2", HideIfEnumFlag.Flag0 | HideIfEnumFlag.Flag1)] - [MinMaxSlider(0.0f, 1.0f)] // AllowNesting attribute is not needed, because the field is already marked with a custom naughty property drawer - public Vector2 hideIfEnumFlagMulti; - } - - public enum HideIfEnum - { - Case0, - Case1, - Case2 - } - - [Flags] - public enum HideIfEnumFlag - { - Flag0 = 1, - Flag1 = 2, - Flag2 = 4, - Flag3 = 8 - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/HideIfTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/HideIfTest.cs.meta deleted file mode 100644 index 6115ad28..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/HideIfTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 3cf166cb519e666419bb79b0c50c5ee1 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/HorizontalLineTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/HorizontalLineTest.cs deleted file mode 100644 index 2bbe587d..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/HorizontalLineTest.cs +++ /dev/null @@ -1,51 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class HorizontalLineTest : MonoBehaviour - { - [HorizontalLine(color: EColor.Black)] - [Header("Black")] - [HorizontalLine(color: EColor.Blue)] - [Header("Blue")] - [HorizontalLine(color: EColor.Gray)] - [Header("Gray")] - [HorizontalLine(color: EColor.Green)] - [Header("Green")] - [HorizontalLine(color: EColor.Indigo)] - [Header("Indigo")] - [HorizontalLine(color: EColor.Orange)] - [Header("Orange")] - [HorizontalLine(color: EColor.Pink)] - [Header("Pink")] - [HorizontalLine(color: EColor.Red)] - [Header("Red")] - [HorizontalLine(color: EColor.Violet)] - [Header("Violet")] - [HorizontalLine(color: EColor.White)] - [Header("White")] - [HorizontalLine(color: EColor.Yellow)] - [Header("Yellow")] - [HorizontalLine(10.0f)] - [Header("Thick")] - public int line0; - - public HorizontalLineNest1 nest1; - } - - [System.Serializable] - public class HorizontalLineNest1 - { - [HorizontalLine] - public int line1; - - public HorizontalLineNest2 nest2; - } - - [System.Serializable] - public class HorizontalLineNest2 - { - [HorizontalLine] - public int line2; - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/HorizontalLineTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/HorizontalLineTest.cs.meta deleted file mode 100644 index 4d7ff377..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/HorizontalLineTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 5cc6d3f8d4a53374887b3d620a6972e3 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/InfoBoxTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/InfoBoxTest.cs deleted file mode 100644 index a1dd5f85..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/InfoBoxTest.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class InfoBoxTest : MonoBehaviour - { - [InfoBox("Normal", EInfoBoxType.Normal)] - public int normal; - - public InfoBoxNest1 nest1; - } - - [System.Serializable] - public class InfoBoxNest1 - { - [InfoBox("Warning", EInfoBoxType.Warning)] - public int warning; - - public InfoBoxNest2 nest2; - } - - [System.Serializable] - public class InfoBoxNest2 - { - [InfoBox("Error", EInfoBoxType.Error)] - public int error; - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/InfoBoxTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/InfoBoxTest.cs.meta deleted file mode 100644 index 68dc824f..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/InfoBoxTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 0dcb08e489c17644e9eacaa1ec5fe781 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/InputAxisTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/InputAxisTest.cs deleted file mode 100644 index 2080e300..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/InputAxisTest.cs +++ /dev/null @@ -1,34 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class InputAxisTest : MonoBehaviour - { - [InputAxis] - public string inputAxis0; - - public InputAxisNest1 nest1; - - [Button] - private void LogInputAxis0() - { - Debug.Log(inputAxis0); - } - } - - [System.Serializable] - public class InputAxisNest1 - { - [InputAxis] - public string inputAxis1; - - public InputAxisNest2 nest2; - } - - [System.Serializable] - public struct InputAxisNest2 - { - [InputAxis] - public string inputAxis2; - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/InputAxisTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/InputAxisTest.cs.meta deleted file mode 100644 index b44a8628..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/InputAxisTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: e0cc8a31c22090847b75538c0ed2d2fc -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/LabelTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/LabelTest.cs deleted file mode 100644 index 5f40e6e7..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/LabelTest.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class LabelTest : MonoBehaviour - { - [Label("Label 0")] - public int int0; - - public LabelNest1 nest1; - } - - [System.Serializable] - public class LabelNest1 - { - [Label("Label 1")] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public int int1; - - public LabelNest2 nest2; - } - - [System.Serializable] - public class LabelNest2 - { - [Label("Label 2")] - [MinMaxSlider(0.0f, 1.0f)] // AllowNesting attribute is not needed, because the field is already marked with a custom naughty property drawer - public Vector2 vector2; - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/LabelTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/LabelTest.cs.meta deleted file mode 100644 index 114af72a..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/LabelTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7488af014527ebf42af5c4fc4d5f4f5b -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/LayerTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/LayerTest.cs deleted file mode 100644 index 52ac6fee..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/LayerTest.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class LayerTest : MonoBehaviour - { - [Layer] - public int layerNumber0; - - [Layer] - public string layerName0; - - public LayerNest1 nest1; - - [Button] - public void DebugLog() - { - Debug.LogFormat("{0} = {1}", nameof(layerNumber0), layerNumber0); - Debug.LogFormat("{0} = {1}", nameof(layerName0), layerName0); - Debug.LogFormat("LayerToName({0}) = {1}", layerNumber0, LayerMask.LayerToName(layerNumber0)); - Debug.LogFormat("NameToLayer({0}) = {1}", layerName0, LayerMask.NameToLayer(layerName0)); - } - } - - [System.Serializable] - public class LayerNest1 - { - [Layer] - public int layerNumber1; - - [Layer] - public string layerName1; - - public LayerNest2 nest2; - } - - [System.Serializable] - public struct LayerNest2 - { - [Layer] - public int layerNumber2; - - [Layer] - public string layerName2; - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/LayerTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/LayerTest.cs.meta deleted file mode 100644 index d66d32c6..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/LayerTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 460459d6ac76acd4d872f94cf444e6fa -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/MinMaxSliderTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/MinMaxSliderTest.cs deleted file mode 100644 index f1ec981c..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/MinMaxSliderTest.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class MinMaxSliderTest : MonoBehaviour - { - [MinMaxSlider(0.0f, 1.0f)] - public Vector2 minMaxSlider0 = new Vector2(0.25f, 0.75f); - - public MinMaxSliderNest1 nest1; - } - - [System.Serializable] - public class MinMaxSliderNest1 - { - [MinMaxSlider(0.0f, 1.0f)] - public Vector2 minMaxSlider1 = new Vector2(0.25f, 0.75f); - - public MinMaxSliderNest2 nest2; - } - - [System.Serializable] - public class MinMaxSliderNest2 - { - [MinMaxSlider(1, 11)] - public Vector2Int minMaxSlider2 = new Vector2Int(6, 11); - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/MinMaxSliderTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/MinMaxSliderTest.cs.meta deleted file mode 100644 index 7580a81b..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/MinMaxSliderTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: fd67fbde6acdd6a44944f12e507067c5 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/MinMaxValueTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/MinMaxValueTest.cs deleted file mode 100644 index 43d15864..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/MinMaxValueTest.cs +++ /dev/null @@ -1,129 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class MinMaxValueTest : MonoBehaviour - { - [MinValue(0)] - public int min0Int; - - [MaxValue(0)] - public int max0Int; - - [MinValue(0), MaxValue(1)] - public float range01Float; - - [MinValue(0), MaxValue(1)] - public Vector2 range01Vector2; - - [MinValue(0), MaxValue(1)] - public Vector3 range01Vector3; - - [MinValue(0), MaxValue(1)] - public Vector4 range01Vector4; - - [MinValue(0)] - public Vector2Int min0Vector2Int; - - [MaxValue(100)] - public Vector2Int max100Vector2Int; - - [MinValue(0)] - public Vector3Int min0Vector3Int; - - [MaxValue(100)] - public Vector3Int max100Vector3Int; - - public MinMaxValueNest1 nest1; - } - - [System.Serializable] - public class MinMaxValueNest1 - { - [MinValue(0)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public int min0Int; - - [MaxValue(0)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public int max0Int; - - [MinValue(0), MaxValue(1)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public float range01Float; - - [MinValue(0), MaxValue(1)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public Vector2 range01Vector2; - - [MinValue(0), MaxValue(1)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public Vector3 range01Vector3; - - [MinValue(0), MaxValue(1)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public Vector4 range01Vector4; - - [MinValue(0)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public Vector2Int min0Vector2Int; - - [MaxValue(100)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public Vector2Int max100Vector2Int; - - [MinValue(0)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public Vector3Int min0Vector3Int; - - [MaxValue(100)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public Vector3Int max100Vector3Int; - - public MinMaxValueNest2 nest2; - } - - [System.Serializable] - public class MinMaxValueNest2 - { - [MinValue(0)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public int min0Int; - - [MaxValue(0)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public int max0Int; - - [MinValue(0), MaxValue(1)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public float range01Float; - - [MinValue(0), MaxValue(1)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public Vector2 range01Vector2; - - [MinValue(0), MaxValue(1)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public Vector3 range01Vector3; - - [MinValue(0), MaxValue(1)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public Vector4 range01Vector4; - - [MinValue(0)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public Vector2Int min0Vector2Int; - - [MaxValue(100)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public Vector2Int max100Vector2Int; - - [MinValue(0)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public Vector3Int min0Vector3Int; - - [MaxValue(100)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public Vector3Int max100Vector3Int; - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/MinMaxValueTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/MinMaxValueTest.cs.meta deleted file mode 100644 index 328dee36..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/MinMaxValueTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 450a05787c54e6b4fa88ffe223bcee87 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/NaughtyAttributes.Test.asmdef b/Unity/Packages/NaughtyAttributes/Scripts/Test/NaughtyAttributes.Test.asmdef deleted file mode 100644 index 910f5483..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/NaughtyAttributes.Test.asmdef +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "NaughtyAttributes.Test", - "references": [ - "NaughtyAttributes.Core" - ], - "optionalUnityReferences": [], - "includePlatforms": [], - "excludePlatforms": [], - "allowUnsafeCode": false, - "overrideReferences": false, - "precompiledReferences": [], - "autoReferenced": true, - "defineConstraints": [] -} \ No newline at end of file diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/NaughtyAttributes.Test.asmdef.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/NaughtyAttributes.Test.asmdef.meta deleted file mode 100644 index c3d49e73..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/NaughtyAttributes.Test.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: df1dea26b8503004d92d621e88aa9421 -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/OnValueChangedTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/OnValueChangedTest.cs deleted file mode 100644 index 360df146..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/OnValueChangedTest.cs +++ /dev/null @@ -1,51 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class OnValueChangedTest : MonoBehaviour - { - [OnValueChanged("OnValueChangedMethod1")] - [OnValueChanged("OnValueChangedMethod2")] - public int int0; - - private void OnValueChangedMethod1() - { - Debug.LogFormat("int0: {0}", int0); - } - - private void OnValueChangedMethod2() - { - Debug.LogFormat("int0: {0}", int0); - } - - public OnValueChangedNest1 nest1; - } - - [System.Serializable] - public class OnValueChangedNest1 - { - [OnValueChanged("OnValueChangedMethod")] - [AllowNesting] - public int int1; - - private void OnValueChangedMethod() - { - Debug.LogFormat("int1: {0}", int1); - } - - public OnValueChangedNest2 nest2; - } - - [System.Serializable] - public class OnValueChangedNest2 - { - [OnValueChanged("OnValueChangedMethod")] - [AllowNesting] - public int int2; - - private void OnValueChangedMethod() - { - Debug.LogFormat("int2: {0}", int2); - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/OnValueChangedTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/OnValueChangedTest.cs.meta deleted file mode 100644 index bfd1ab25..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/OnValueChangedTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: ff1df679e5b32f64bb106752c63933fa -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/ProgressBarTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/ProgressBarTest.cs deleted file mode 100644 index 05348122..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/ProgressBarTest.cs +++ /dev/null @@ -1,35 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class ProgressBarTest : MonoBehaviour - { - [Header("Constant ProgressBar")] - [ProgressBar("Health", 100, EColor.Red)] - public float health = 50.0f; - - [Header("Nested ProgressBar")] - public ProgressBarNest1 nest1; - - [Header("Dynamic ProgressBar")] - [ProgressBar("Elixir", "maxElixir", color: EColor.Violet)] - public int elixir = 50; - public int maxElixir = 100; - } - - [System.Serializable] - public class ProgressBarNest1 - { - [ProgressBar("Mana", 100, EColor.Blue)] - public float mana = 25.0f; - - public ProgressBarNest2 nest2; - } - - [System.Serializable] - public class ProgressBarNest2 - { - [ProgressBar("Stamina", 100, EColor.Green)] - public float stamina = 75.0f; - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/ProgressBarTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/ProgressBarTest.cs.meta deleted file mode 100644 index db884298..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/ProgressBarTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 96ca4c27fc649764b9d1625f1740cb9e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/ReadOnlyTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/ReadOnlyTest.cs deleted file mode 100644 index d832097b..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/ReadOnlyTest.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class ReadOnlyTest : MonoBehaviour - { - [ReadOnly] - public int readOnlyInt = 5; - - public ReadOnlyNest1 nest1; - } - - [System.Serializable] - public class ReadOnlyNest1 - { - [ReadOnly] - [AllowNesting] - public float readOnlyFloat = 3.14f; - - public ReadOnlyNest2 nest2; - } - - [System.Serializable] - public struct ReadOnlyNest2 - { - [ReadOnly] - [AllowNesting] - public string readOnlyString; - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/ReadOnlyTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/ReadOnlyTest.cs.meta deleted file mode 100644 index d65c60ce..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/ReadOnlyTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 5443d37a05e188846bda9b05b067184e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/ReorderableListTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/ReorderableListTest.cs deleted file mode 100644 index 6b3e4391..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/ReorderableListTest.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System.Collections.Generic; -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class ReorderableListTest : MonoBehaviour - { - [ReorderableList] - public int[] intArray; - - [ReorderableList] - public List vectorList; - - [ReorderableList] - public List structList; - - [ReorderableList] - public GameObject[] gameObjectsList; - - [ReorderableList] - public List transformsList; - - [ReorderableList] - public List monoBehavioursList; - } - - [System.Serializable] - public struct SomeStruct - { - public int Int; - public float Float; - public Vector3 Vector; - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/ReorderableListTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/ReorderableListTest.cs.meta deleted file mode 100644 index b993018c..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/ReorderableListTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: c93fde7cd79390148ac576c3a159a77b -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/RequiredTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/RequiredTest.cs deleted file mode 100644 index ea049361..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/RequiredTest.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class RequiredTest : MonoBehaviour - { - [Required] - public Transform trans0; - - public RequiredNest1 nest1; - } - - [System.Serializable] - public class RequiredNest1 - { - [Required] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public Transform trans1; - - public RequiredNest2 nest2; - } - - [System.Serializable] - public class RequiredNest2 - { - [Required("trans2 is invalid custom message - hohoho")] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public Transform trans2; - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/RequiredTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/RequiredTest.cs.meta deleted file mode 100644 index bc512606..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/RequiredTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 9c8c10b2234650d42b2a8efad6b413db -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/ResizableTextAreaTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/ResizableTextAreaTest.cs deleted file mode 100644 index aa57a3d7..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/ResizableTextAreaTest.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class ResizableTextAreaTest : MonoBehaviour - { - [ResizableTextArea] - public string text0; - - public ResizableTextAreaNest1 nest1; - } - - [System.Serializable] - public class ResizableTextAreaNest1 - { - [ResizableTextArea] - public string text1; - - public ResizableTextAreaNest2 nest2; - } - - [System.Serializable] - public class ResizableTextAreaNest2 - { - [ResizableTextArea] - public string text2; - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/ResizableTextAreaTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/ResizableTextAreaTest.cs.meta deleted file mode 100644 index 380566d5..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/ResizableTextAreaTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: fb4f4bb2e3e063340a24f4bb24528bb5 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/SceneTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/SceneTest.cs deleted file mode 100644 index 70d37c0f..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/SceneTest.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class SceneTest : MonoBehaviour - { - [Scene] - public string scene0; - - public SceneNest1 nest1; - } - - [System.Serializable] - public class SceneNest1 - { - [Scene] - public string scene1; - - public SceneNest2 nest2; - } - - [System.Serializable] - public struct SceneNest2 - { - [Scene] - public int scene2; - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/SceneTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/SceneTest.cs.meta deleted file mode 100644 index 3ceca2fe..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/SceneTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 281a85803caf74a459439020a0840fa4 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowAssetPreviewTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowAssetPreviewTest.cs deleted file mode 100644 index c20b7547..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowAssetPreviewTest.cs +++ /dev/null @@ -1,37 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class ShowAssetPreviewTest : MonoBehaviour - { - [ShowAssetPreview] - public Sprite sprite0; - - [ShowAssetPreview(96, 96)] - public GameObject prefab0; - - public ShowAssetPreviewNest1 nest1; - } - - [System.Serializable] - public class ShowAssetPreviewNest1 - { - [ShowAssetPreview] - public Sprite sprite1; - - [ShowAssetPreview(96, 96)] - public GameObject prefab1; - - public ShowAssetPreviewNest2 nest2; - } - - [System.Serializable] - public class ShowAssetPreviewNest2 - { - [ShowAssetPreview] - public Sprite sprite2; - - [ShowAssetPreview(96, 96)] - public GameObject prefab2; - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowAssetPreviewTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowAssetPreviewTest.cs.meta deleted file mode 100644 index b636853b..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowAssetPreviewTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 705c14aa9ecaa274289972381f471367 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowIfTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowIfTest.cs deleted file mode 100644 index fe19d632..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowIfTest.cs +++ /dev/null @@ -1,119 +0,0 @@ -using System; -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class ShowIfTest : MonoBehaviour - { - public bool show1; - public bool show2; - public ShowIfEnum enum1; - [EnumFlags] public ShowIfEnumFlag enum2; - - [ShowIf(EConditionOperator.And, "show1", "show2")] - [ReorderableList] - public int[] showIfAll; - - [ShowIf(EConditionOperator.Or, "show1", "show2")] - [ReorderableList] - public int[] showIfAny; - - [ShowIf("enum1", ShowIfEnum.Case0)] - [ReorderableList] - public int[] showIfEnum; - - [ShowIf("enum2", ShowIfEnumFlag.Flag0)] - [ReorderableList] - public int[] showIfEnumFlag; - - [ShowIf("enum2", ShowIfEnumFlag.Flag0 | ShowIfEnumFlag.Flag1)] - [ReorderableList] - public int[] showIfEnumFlagMulti; - - public ShowIfNest1 nest1; - } - - [System.Serializable] - public class ShowIfNest1 - { - public bool show1; - public bool show2; - public ShowIfEnum enum1; - [EnumFlags] public ShowIfEnumFlag enum2; - public bool Show1 { get { return show1; } } - public bool Show2 { get { return show2; } } - public ShowIfEnum Enum1 { get { return enum1; } } - public ShowIfEnumFlag Enum2 { get { return enum2; } } - - [ShowIf(EConditionOperator.And, "Show1", "Show2")] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public int showIfAll; - - [ShowIf(EConditionOperator.Or, "Show1", "Show2")] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public int showIfAny; - - [ShowIf("Enum1", ShowIfEnum.Case1)] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public int showIfEnum; - - [ShowIf("Enum2", ShowIfEnumFlag.Flag0)] - [AllowNesting] - public int showIfEnumFlag; - - [ShowIf("Enum2", ShowIfEnumFlag.Flag0 | ShowIfEnumFlag.Flag1)] - [AllowNesting] - public int showIfEnumFlagMulti; - - public ShowIfNest2 nest2; - } - - [System.Serializable] - public class ShowIfNest2 - { - public bool show1; - public bool show2; - public ShowIfEnum enum1; - [EnumFlags] public ShowIfEnumFlag enum2; - public bool GetShow1() { return show1; } - public bool GetShow2() { return show2; } - public ShowIfEnum GetEnum1() { return enum1; } - public ShowIfEnumFlag GetEnum2() { return enum2; } - - [ShowIf(EConditionOperator.And, "GetShow1", "GetShow2")] - [MinMaxSlider(0.0f, 1.0f)] // AllowNesting attribute is not needed, because the field is already marked with a custom naughty property drawer - public Vector2 showIfAll = new Vector2(0.25f, 0.75f); - - [ShowIf(EConditionOperator.Or, "GetShow1", "GetShow2")] - [MinMaxSlider(0.0f, 1.0f)] // AllowNesting attribute is not needed, because the field is already marked with a custom naughty property drawer - public Vector2 showIfAny = new Vector2(0.25f, 0.75f); - - [ShowIf("GetEnum1", ShowIfEnum.Case2)] - [MinMaxSlider(0.0f, 1.0f)] // AllowNesting attribute is not needed, because the field is already marked with a custom naughty property drawer - public Vector2 showIfEnum = new Vector2(0.25f, 0.75f); - - [ShowIf("GetEnum2", ShowIfEnumFlag.Flag0)] - [MinMaxSlider(0.0f, 1.0f)] // AllowNesting attribute is not needed, because the field is already marked with a custom naughty property drawer - public Vector2 showIfEnumFlag; - - [ShowIf("GetEnum2", ShowIfEnumFlag.Flag0 | ShowIfEnumFlag.Flag1)] - [MinMaxSlider(0.0f, 1.0f)] // AllowNesting attribute is not needed, because the field is already marked with a custom naughty property drawer - public Vector2 showIfEnumFlagMulti; - } - - public enum ShowIfEnum - { - Case0, - Case1, - Case2 - } - - [Flags] - public enum ShowIfEnumFlag - { - Flag0 = 1, - Flag1 = 2, - Flag2 = 4, - Flag3 = 8 - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowIfTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowIfTest.cs.meta deleted file mode 100644 index 749d05ce..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowIfTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 4fdbfcfbf5b056a4bac491fe21569572 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowNativePropertyTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowNativePropertyTest.cs deleted file mode 100644 index 6f4b3797..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowNativePropertyTest.cs +++ /dev/null @@ -1,79 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class ShowNativePropertyTest : MonoBehaviour - { - [ShowNativeProperty] - private Transform Transform - { - get - { - return transform; - } - } - - [ShowNativeProperty] - private Transform ParentTransform - { - get - { - return transform.parent; - } - } - - [ShowNativeProperty] - private ushort MyUShort - { - get - { - return ushort.MaxValue; - } - } - - [ShowNativeProperty] - private short MyShort - { - get - { - return short.MaxValue; - } - } - - [ShowNativeProperty] - private ulong MyULong - { - get - { - return ulong.MaxValue; - } - } - - [ShowNativeProperty] - private long MyLong - { - get - { - return long.MaxValue; - } - } - - [ShowNativeProperty] - private uint MyUInt - { - get - { - return uint.MaxValue; - } - } - - [ShowNativeProperty] - private int MyInt - { - get - { - return int.MaxValue; - } - } - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowNativePropertyTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowNativePropertyTest.cs.meta deleted file mode 100644 index 19f9e31f..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowNativePropertyTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b5a73795d25dd334e90a5a347c6079d9 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowNonSerializedFieldTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowNonSerializedFieldTest.cs deleted file mode 100644 index cace1508..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowNonSerializedFieldTest.cs +++ /dev/null @@ -1,33 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class ShowNonSerializedFieldTest : MonoBehaviour - { -#pragma warning disable 414 - [ShowNonSerializedField] - private ushort myUShort = ushort.MaxValue; - - [ShowNonSerializedField] - private short myShort = short.MaxValue; - - [ShowNonSerializedField] - private uint myUInt = uint.MaxValue; - - [ShowNonSerializedField] - private int myInt = 10; - - [ShowNonSerializedField] - private ulong myULong = ulong.MaxValue; - - [ShowNonSerializedField] - private long myLong = long.MaxValue; - - [ShowNonSerializedField] - private const float PI = 3.14159f; - - [ShowNonSerializedField] - private static readonly Vector3 CONST_VECTOR = Vector3.one; -#pragma warning restore 414 - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowNonSerializedFieldTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowNonSerializedFieldTest.cs.meta deleted file mode 100644 index 404ff1bb..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/ShowNonSerializedFieldTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 913d67a695253f744bdc776625b9b948 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/SortingLayerTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/SortingLayerTest.cs deleted file mode 100644 index e77bfec6..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/SortingLayerTest.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class SortingLayerTest : MonoBehaviour - { - [SortingLayer] - public int layerNumber0; - - [SortingLayer] - public string layerName0; - - public SortingLayerNest1 nest1; - - [Button] - public void DebugLog() - { - Debug.LogFormat("{0} = {1}", nameof(layerNumber0), layerNumber0); - Debug.LogFormat("{0} = {1}", nameof(layerName0), layerName0); - Debug.LogFormat("LayerToName({0}) = {1}", layerNumber0, SortingLayer.IDToName(layerNumber0)); - Debug.LogFormat("NameToLayer({0}) = {1}", layerName0, SortingLayer.NameToID(layerName0)); - } - } - - [System.Serializable] - public class SortingLayerNest1 - { - [SortingLayer] - public int layerNumber1; - - [SortingLayer] - public string layerName1; - - public SortingLayerNest2 nest2; - } - - [System.Serializable] - public struct SortingLayerNest2 - { - [SortingLayer] - public int layerNumber2; - - [SortingLayer] - public string layerName2; - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/SortingLayerTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/SortingLayerTest.cs.meta deleted file mode 100644 index e8cd99c1..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/SortingLayerTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 8ed73e666d447964d93c4840f05423dc -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/TagTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/TagTest.cs deleted file mode 100644 index cb77fb83..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/TagTest.cs +++ /dev/null @@ -1,34 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class TagTest : MonoBehaviour - { - [Tag] - public string tag0; - - public TagNest1 nest1; - - [Button] - private void LogTag0() - { - Debug.Log(tag0); - } - } - - [System.Serializable] - public class TagNest1 - { - [Tag] - public string tag1; - - public TagNest2 nest2; - } - - [System.Serializable] - public struct TagNest2 - { - [Tag] - public string tag2; - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/TagTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/TagTest.cs.meta deleted file mode 100644 index 88ea5af3..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/TagTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 8bcc0d5613b48fb43bd36c9d37e99900 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/ValidateInputTest.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/ValidateInputTest.cs deleted file mode 100644 index 8e7b091c..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/ValidateInputTest.cs +++ /dev/null @@ -1,52 +0,0 @@ -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class ValidateInputTest : MonoBehaviour - { - [ValidateInput("NotZero0", "int0 must not be zero")] - public int int0; - - private bool NotZero0(int value) - { - return value != 0; - } - - public ValidateInputNest1 nest1; - - public ValidateInputInheritedNest inheritedNest; - } - - [System.Serializable] - public class ValidateInputNest1 - { - [ValidateInput("NotZero1")] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public int int1; - - private bool NotZero1(int value) - { - return value != 0; - } - - public ValidateInputNest2 nest2; - } - - [System.Serializable] - public class ValidateInputNest2 - { - [ValidateInput("NotZero2")] - [AllowNesting] // Because it's nested we need to explicitly allow nesting - public int int2; - - private bool NotZero2(int value) - { - return value != 0; - } - } - - [System.Serializable] - public class ValidateInputInheritedNest : ValidateInputNest1 - { - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/ValidateInputTest.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/ValidateInputTest.cs.meta deleted file mode 100644 index f57070a2..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/ValidateInputTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 94adafcfe59aa344c9b5596b2cc6ecd0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/_NaughtyComponent.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/_NaughtyComponent.cs deleted file mode 100644 index aff1dfa3..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/_NaughtyComponent.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System.Collections.Generic; -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - public class _NaughtyComponent : MonoBehaviour - { - } - - [System.Serializable] - public class MyClass - { - } - - [System.Serializable] - public struct MyStruct - { - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/_NaughtyComponent.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/_NaughtyComponent.cs.meta deleted file mode 100644 index 5702f194..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/_NaughtyComponent.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 9c928ea15ae74a44089beb2e534c1a35 -timeCreated: 1507996629 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/_NaughtyScriptableObject.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/_NaughtyScriptableObject.cs deleted file mode 100644 index c8d80fbc..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/_NaughtyScriptableObject.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using UnityEngine; - -namespace NaughtyAttributes.Test -{ - //[CreateAssetMenu(fileName = "NaughtyScriptableObject", menuName = "NaughtyAttributes/_NaughtyScriptableObject")] - public class _NaughtyScriptableObject : ScriptableObject - { - [Expandable] - public List<_TestScriptableObjectA> listA; - } -} diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/_NaughtyScriptableObject.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/_NaughtyScriptableObject.cs.meta deleted file mode 100644 index eb5d253e..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/_NaughtyScriptableObject.cs.meta +++ /dev/null @@ -1,13 +0,0 @@ -fileFormatVersion: 2 -guid: 753bdb918c6038142acddbd7aae6958f -timeCreated: 1518639587 -licenseType: Free -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/_TestScriptableObjectA.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/_TestScriptableObjectA.cs deleted file mode 100644 index ee7b36f1..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/_TestScriptableObjectA.cs +++ /dev/null @@ -1,12 +0,0 @@ -using UnityEngine; -using System.Collections.Generic; - -namespace NaughtyAttributes.Test -{ - //[CreateAssetMenu(fileName = "TestScriptableObjectA", menuName = "NaughtyAttributes/TestScriptableObjectA")] - public class _TestScriptableObjectA : ScriptableObject - { - [Expandable] - public List<_TestScriptableObjectB> listB; - } -} \ No newline at end of file diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/_TestScriptableObjectA.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/_TestScriptableObjectA.cs.meta deleted file mode 100644 index 5037e5c2..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/_TestScriptableObjectA.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 19472ac11eae27a4b804f354ca7d9c00 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/_TestScriptableObjectB.cs b/Unity/Packages/NaughtyAttributes/Scripts/Test/_TestScriptableObjectB.cs deleted file mode 100644 index 89a474d3..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/_TestScriptableObjectB.cs +++ /dev/null @@ -1,12 +0,0 @@ -using UnityEngine; -using System.Collections.Generic; - -namespace NaughtyAttributes.Test -{ - //[CreateAssetMenu(fileName = "TestScriptableObjectB", menuName = "NaughtyAttributes/TestScriptableObjectB")] - public class _TestScriptableObjectB : ScriptableObject - { - [MinMaxSlider(0, 10)] - public Vector2Int slider; - } -} \ No newline at end of file diff --git a/Unity/Packages/NaughtyAttributes/Scripts/Test/_TestScriptableObjectB.cs.meta b/Unity/Packages/NaughtyAttributes/Scripts/Test/_TestScriptableObjectB.cs.meta deleted file mode 100644 index 0562e579..00000000 --- a/Unity/Packages/NaughtyAttributes/Scripts/Test/_TestScriptableObjectB.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: c2b396aeebc9d984da298eee313896bc -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/NaughtyAttributes/package.json b/Unity/Packages/NaughtyAttributes/package.json deleted file mode 100644 index 960db057..00000000 --- a/Unity/Packages/NaughtyAttributes/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "com.dbrizov.naughtyattributes", - "displayName": "NaughtyAttributes", - "version": "2.1.4", - "unity": "2018.4", - "description": "NaughtyAttributes is an extension for the Unity Inspector.", - "keywords": [ "attribute", "inspector", "editor" ], - "category": "editor extensions", - "dependencies": {}, - "samples": [ - { - "displayName": "Demo Scene", - "description": "Demo Scene", - "path": "Samples/DemoScene" - } - ], - "author": { - "name": "Denis Rizov", - "url": "https://github.com/dbrizov" - } -} diff --git a/Unity/Packages/NaughtyAttributes/package.json.meta b/Unity/Packages/NaughtyAttributes/package.json.meta deleted file mode 100644 index 6f1fa825..00000000 --- a/Unity/Packages/NaughtyAttributes/package.json.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: db9a5ca20403b0344ae64015de8f8c86 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity/Packages/packages-lock.json b/Unity/Packages/packages-lock.json index 1ac6bb71..2e33d2df 100644 --- a/Unity/Packages/packages-lock.json +++ b/Unity/Packages/packages-lock.json @@ -6,13 +6,6 @@ "source": "embedded", "dependencies": {} }, - "com.coffee.csharp-compiler-settings": { - "version": "https://github.com/mob-sakai/CSharpCompilerSettingsForUnity.git", - "depth": 0, - "source": "git", - "dependencies": {}, - "hash": "7b73d99d06f565e759c830d1974430feee014b86" - }, "com.codewriter.triinspector": { "version": "file:Tri-Inspector", "depth": 0, @@ -21,11 +14,12 @@ "com.unity.localization": "1.0.0" } }, - "com.dbrizov.naughtyattributes": { - "version": "file:NaughtyAttributes", + "com.coffee.csharp-compiler-settings": { + "version": "https://github.com/mob-sakai/CSharpCompilerSettingsForUnity.git", "depth": 0, - "source": "embedded", - "dependencies": {} + "source": "git", + "dependencies": {}, + "hash": "7b73d99d06f565e759c830d1974430feee014b86" }, "com.unity.2d.sprite": { "version": "1.0.0",