From dc15bfec816feaae997bffb12b58bfa41174f5c7 Mon Sep 17 00:00:00 2001 From: Anders Ejlersen Date: Sat, 4 Dec 2021 12:47:44 +0100 Subject: [PATCH] Renamed all attributes and drawers to have postfix of either Attribute or AttributeDrawer --- ...rawerDisable.cs => DisableAttributeDrawer.cs} | 4 ++-- ...le.cs.meta => DisableAttributeDrawer.cs.meta} | 0 ...leField.cs => DisableFieldAttributeDrawer.cs} | 6 +++--- ....meta => DisableFieldAttributeDrawer.cs.meta} | 0 ... => DisableFieldInPlayModeAttributeDrawer.cs} | 4 ++-- ...isableFieldInPlayModeAttributeDrawer.cs.meta} | 0 ...Method.cs => DisableMethodAttributeDrawer.cs} | 6 +++--- ...meta => DisableMethodAttributeDrawer.cs.meta} | 0 ...=> DisableMethodInPlayModeAttributeDrawer.cs} | 4 ++-- ...sableMethodInPlayModeAttributeDrawer.cs.meta} | 0 ...bleField.cs => EnableFieldAttributeDrawer.cs} | 6 +++--- ...s.meta => EnableFieldAttributeDrawer.cs.meta} | 0 ...s => EnableFieldInPlayModeAttributeDrawer.cs} | 4 ++-- ...EnableFieldInPlayModeAttributeDrawer.cs.meta} | 0 ...eMethod.cs => EnableMethodAttributeDrawer.cs} | 6 +++--- ....meta => EnableMethodAttributeDrawer.cs.meta} | 0 ... => EnableMethodInPlayModeAttributeDrawer.cs} | 4 ++-- ...nableMethodInPlayModeAttributeDrawer.cs.meta} | 0 ...rHideField.cs => HideFieldAttributeDrawer.cs} | 6 +++--- ....cs.meta => HideFieldAttributeDrawer.cs.meta} | 0 ...s => HideInNormalInspectorAttributeDrawer.cs} | 4 ++-- ...HideInNormalInspectorAttributeDrawer.cs.meta} | 0 ...ideMethod.cs => HideMethodAttributeDrawer.cs} | 6 +++--- ...cs.meta => HideMethodAttributeDrawer.cs.meta} | 0 ...rShowField.cs => ShowFieldAttributeDrawer.cs} | 6 +++--- ....cs.meta => ShowFieldAttributeDrawer.cs.meta} | 0 ...howMethod.cs => ShowMethodAttributeDrawer.cs} | 6 +++--- ...cs.meta => ShowMethodAttributeDrawer.cs.meta} | 0 ...lLine.cs => HorizontalLineAttributeDrawer.cs} | 6 +++--- ...eta => HorizontalLineAttributeDrawer.cs.meta} | 0 ...dHeader.cs => MethodHeaderAttributeDrawer.cs} | 8 ++++---- ....meta => MethodHeaderAttributeDrawer.cs.meta} | 0 ...werEnumFlag.cs => EnumFlagAttributeDrawer.cs} | 4 ++-- ...g.cs.meta => EnumFlagAttributeDrawer.cs.meta} | 0 ...werFilePath.cs => FilePathAttributeDrawer.cs} | 6 +++--- ...h.cs.meta => FilePathAttributeDrawer.cs.meta} | 0 ...olderPath.cs => FolderPathAttributeDrawer.cs} | 6 +++--- ...cs.meta => FolderPathAttributeDrawer.cs.meta} | 0 ... => IntToAnimatorParameterAttributeDrawer.cs} | 8 ++++---- ...ntToAnimatorParameterAttributeDrawer.cs.meta} | 0 ...rIntToEnum.cs => IntToEnumAttributeDrawer.cs} | 8 ++++---- ....cs.meta => IntToEnumAttributeDrawer.cs.meta} | 0 ...ntToLayer.cs => IntToLayerAttributeDrawer.cs} | 4 ++-- ...cs.meta => IntToLayerAttributeDrawer.cs.meta} | 0 ...dButton.cs => MethodButtonAttributeDrawer.cs} | 6 +++--- ....meta => MethodButtonAttributeDrawer.cs.meta} | 0 ...{DrawerNaming.cs => NamingAttributeDrawer.cs} | 6 +++--- ...ing.cs.meta => NamingAttributeDrawer.cs.meta} | 0 ...ercentage.cs => PercentageAttributeDrawer.cs} | 4 ++-- ...cs.meta => PercentageAttributeDrawer.cs.meta} | 0 ...Const.cs => PopupFromConstAttributeDrawer.cs} | 8 ++++---- ...eta => PopupFromConstAttributeDrawer.cs.meta} | 0 ...er.cs => QuaternionToEulerAttributeDrawer.cs} | 4 ++-- ... => QuaternionToEulerAttributeDrawer.cs.meta} | 0 ...opdown.cs => SceneDropdownAttributeDrawer.cs} | 4 ++-- ...meta => SceneDropdownAttributeDrawer.cs.meta} | 0 ...{DrawerSlider.cs => SliderAttributeDrawer.cs} | 16 ++++++++-------- ...der.cs.meta => SliderAttributeDrawer.cs.meta} | 0 ... StringToAnimatorParameterAttributeDrawer.cs} | 8 ++++---- ...ngToAnimatorParameterAttributeDrawer.cs.meta} | 0 ...oField.cs => StringToFieldAttributeDrawer.cs} | 6 +++--- ...meta => StringToFieldAttributeDrawer.cs.meta} | 0 ...gToType.cs => StringToTypeAttributeDrawer.cs} | 6 +++--- ....meta => StringToTypeAttributeDrawer.cs.meta} | 0 .../{DrawerTag.cs => TagAttributeDrawer.cs} | 4 ++-- ...werTag.cs.meta => TagAttributeDrawer.cs.meta} | 0 ...rawerUrlGoTo.cs => UrlGoToAttributeDrawer.cs} | 4 ++-- ...To.cs.meta => UrlGoToAttributeDrawer.cs.meta} | 0 Editor/Utilities/EditorNamingUtility.cs | 14 +++++++------- ...rrayIndex.cs => ArrayIndexAttributeDrawer.cs} | 8 ++++---- ...cs.meta => ArrayIndexAttributeDrawer.cs.meta} | 0 ...ield.cs => LargerThanFieldAttributeDrawer.cs} | 6 +++--- ...ta => LargerThanFieldAttributeDrawer.cs.meta} | 0 ...werMaxValue.cs => MaxValueAttributeDrawer.cs} | 6 +++--- ...e.cs.meta => MaxValueAttributeDrawer.cs.meta} | 0 ...werMinValue.cs => MinValueAttributeDrawer.cs} | 6 +++--- ...e.cs.meta => MinValueAttributeDrawer.cs.meta} | 0 ...eld.cs => SmallerThanFieldAttributeDrawer.cs} | 6 +++--- ...a => SmallerThanFieldAttributeDrawer.cs.meta} | 0 Runtime/AccessModifiers/DisableAttribute.cs | 14 ++++++++++++++ ...{Disable.cs.meta => DisableAttribute.cs.meta} | 0 .../{ShowField.cs => DisableFieldAttribute.cs} | 6 +++--- ...eld.cs.meta => DisableFieldAttribute.cs.meta} | 0 .../DisableFieldInPlayModeAttribute.cs | 14 ++++++++++++++ ...a => DisableFieldInPlayModeAttribute.cs.meta} | 0 ...EnableMethod.cs => DisableMethodAttribute.cs} | 6 +++--- ...od.cs.meta => DisableMethodAttribute.cs.meta} | 0 ...de.cs => DisableMethodInPlayModeAttribute.cs} | 4 ++-- ... => DisableMethodInPlayModeAttribute.cs.meta} | 0 .../{EnableField.cs => EnableFieldAttribute.cs} | 6 +++--- ...ield.cs.meta => EnableFieldAttribute.cs.meta} | 0 ...Mode.cs => EnableFieldInPlayModeAttribute.cs} | 4 ++-- ...ta => EnableFieldInPlayModeAttribute.cs.meta} | 0 .../{ShowMethod.cs => EnableMethodAttribute.cs} | 6 +++--- ...hod.cs.meta => EnableMethodAttribute.cs.meta} | 0 ...ode.cs => EnableMethodInPlayModeAttribute.cs} | 4 ++-- ...a => EnableMethodInPlayModeAttribute.cs.meta} | 0 .../{HideField.cs => HideFieldAttribute.cs} | 8 ++++---- ...eField.cs.meta => HideFieldAttribute.cs.meta} | 0 ...ctor.cs => HideInNormalInspectorAttribute.cs} | 4 ++-- ...ta => HideInNormalInspectorAttribute.cs.meta} | 0 .../{HideMethod.cs => HideMethodAttribute.cs} | 8 ++++---- ...ethod.cs.meta => HideMethodAttribute.cs.meta} | 0 .../{DisableField.cs => ShowFieldAttribute.cs} | 6 +++--- ...wField.cs.meta => ShowFieldAttribute.cs.meta} | 0 .../{DisableMethod.cs => ShowMethodAttribute.cs} | 6 +++--- ...ethod.cs.meta => ShowMethodAttribute.cs.meta} | 0 ...izontalLine.cs => HorizontalLineAttribute.cs} | 6 +++--- ...e.cs.meta => HorizontalLineAttribute.cs.meta} | 0 ...{MethodHeader.cs => MethodHeaderAttribute.cs} | 6 +++--- ...der.cs.meta => MethodHeaderAttribute.cs.meta} | 0 ...QuaternionToEuler.cs => EnumFlagAttribute.cs} | 4 ++-- ...numFlag.cs.meta => EnumFlagAttribute.cs.meta} | 0 .../{FilePath.cs => FilePathAttribute.cs} | 6 +++--- ...ilePath.cs.meta => FilePathAttribute.cs.meta} | 0 .../{FolderPath.cs => FolderPathAttribute.cs} | 4 ++-- ...rPath.cs.meta => FolderPathAttribute.cs.meta} | 0 ...ter.cs => IntToAnimatorParameterAttribute.cs} | 4 ++-- ...a => IntToAnimatorParameterAttribute.cs.meta} | 0 .../{IntToEnum.cs => IntToEnumAttribute.cs} | 6 +++--- ...ToEnum.cs.meta => IntToEnumAttribute.cs.meta} | 0 .../{Percentage.cs => IntToLayerAttribute.cs} | 4 ++-- ...Layer.cs.meta => IntToLayerAttribute.cs.meta} | 0 ...{MethodButton.cs => MethodButtonAttribute.cs} | 6 +++--- ...ton.cs.meta => MethodButtonAttribute.cs.meta} | 0 .../Drawers/{Naming.cs => NamingAttribute.cs} | 4 ++-- .../{Naming.cs.meta => NamingAttribute.cs.meta} | 0 Runtime/Drawers/PercentageAttribute.cs | 14 ++++++++++++++ ...ntage.cs.meta => PercentageAttribute.cs.meta} | 0 ...ringToField.cs => PopupFromConstAttribute.cs} | 4 ++-- ...t.cs.meta => PopupFromConstAttribute.cs.meta} | 0 .../QuaternionToEulerAttribute.cs} | 4 ++-- ...s.meta => QuaternionToEulerAttribute.cs.meta} | 0 Runtime/Drawers/SceneDropdown.cs | 14 -------------- Runtime/Drawers/SceneDropdownAttribute.cs | 14 ++++++++++++++ ...wn.cs.meta => SceneDropdownAttribute.cs.meta} | 0 Runtime/Drawers/Slider.cs | 14 -------------- .../Disable.cs => Drawers/SliderAttribute.cs} | 4 ++-- .../{Slider.cs.meta => SliderAttribute.cs.meta} | 0 ....cs => StringToAnimatorParameterAttribute.cs} | 4 ++-- ...> StringToAnimatorParameterAttribute.cs.meta} | 0 ...pupFromConst.cs => StringToFieldAttribute.cs} | 4 ++-- ...ld.cs.meta => StringToFieldAttribute.cs.meta} | 0 ...{StringToType.cs => StringToTypeAttribute.cs} | 4 ++-- ...ype.cs.meta => StringToTypeAttribute.cs.meta} | 0 Runtime/Drawers/Tag.cs | 14 -------------- .../Drawers/{IntToLayer.cs => TagAttribute.cs} | 4 ++-- .../{Tag.cs.meta => TagAttribute.cs.meta} | 0 Runtime/Drawers/UrlGoTo.cs | 14 -------------- .../Drawers/{EnumFlag.cs => UrlGoToAttribute.cs} | 4 ++-- ...{UrlGoTo.cs.meta => UrlGoToAttribute.cs.meta} | 0 .../{ArrayIndex.cs => ArrayIndexAttribute.cs} | 4 ++-- ...Index.cs.meta => ArrayIndexAttribute.cs.meta} | 0 ...rThanField.cs => LargerThanFieldAttribute.cs} | 4 ++-- ....cs.meta => LargerThanFieldAttribute.cs.meta} | 0 .../{MaxValue.cs => MaxValueAttribute.cs} | 6 +++--- ...axValue.cs.meta => MaxValueAttribute.cs.meta} | 0 .../{MinValue.cs => MinValueAttribute.cs} | 6 +++--- ...inValue.cs.meta => MinValueAttribute.cs.meta} | 0 ...ThanField.cs => SmallerThanFieldAttribute.cs} | 4 ++-- ...cs.meta => SmallerThanFieldAttribute.cs.meta} | 0 161 files changed, 265 insertions(+), 265 deletions(-) rename Editor/AccessModifiers/{DrawerDisable.cs => DisableAttributeDrawer.cs} (72%) rename Editor/AccessModifiers/{DrawerDisable.cs.meta => DisableAttributeDrawer.cs.meta} (100%) rename Editor/AccessModifiers/{DrawerDisableField.cs => DisableFieldAttributeDrawer.cs} (70%) rename Editor/AccessModifiers/{DrawerDisableField.cs.meta => DisableFieldAttributeDrawer.cs.meta} (100%) rename Editor/AccessModifiers/{DrawerDisableFieldInPlayMode.cs => DisableFieldInPlayModeAttributeDrawer.cs} (72%) rename Editor/AccessModifiers/{DrawerDisableFieldInPlayMode.cs.meta => DisableFieldInPlayModeAttributeDrawer.cs.meta} (100%) rename Editor/AccessModifiers/{DrawerDisableMethod.cs => DisableMethodAttributeDrawer.cs} (74%) rename Editor/AccessModifiers/{DrawerDisableMethod.cs.meta => DisableMethodAttributeDrawer.cs.meta} (100%) rename Editor/AccessModifiers/{DrawerDisableMethodInPlayMode.cs => DisableMethodInPlayModeAttributeDrawer.cs} (73%) rename Editor/AccessModifiers/{DrawerDisableMethodInPlayMode.cs.meta => DisableMethodInPlayModeAttributeDrawer.cs.meta} (100%) rename Editor/AccessModifiers/{DrawerEnableField.cs => EnableFieldAttributeDrawer.cs} (71%) rename Editor/AccessModifiers/{DrawerEnableField.cs.meta => EnableFieldAttributeDrawer.cs.meta} (100%) rename Editor/AccessModifiers/{DrawerEnableFieldInPlayMode.cs => EnableFieldInPlayModeAttributeDrawer.cs} (73%) rename Editor/AccessModifiers/{DrawerEnableFieldInPlayMode.cs.meta => EnableFieldInPlayModeAttributeDrawer.cs.meta} (100%) rename Editor/AccessModifiers/{DrawerEnableMethod.cs => EnableMethodAttributeDrawer.cs} (74%) rename Editor/AccessModifiers/{DrawerEnableMethod.cs.meta => EnableMethodAttributeDrawer.cs.meta} (100%) rename Editor/AccessModifiers/{DrawerEnableMethodInPlayMode.cs => EnableMethodInPlayModeAttributeDrawer.cs} (74%) rename Editor/AccessModifiers/{DrawerEnableMethodInPlayMode.cs.meta => EnableMethodInPlayModeAttributeDrawer.cs.meta} (100%) rename Editor/AccessModifiers/{DrawerHideField.cs => HideFieldAttributeDrawer.cs} (78%) rename Editor/AccessModifiers/{DrawerHideField.cs.meta => HideFieldAttributeDrawer.cs.meta} (100%) rename Editor/AccessModifiers/{DrawerHideInNormalInspector.cs => HideInNormalInspectorAttributeDrawer.cs} (66%) rename Editor/AccessModifiers/{DrawerHideInNormalInspector.cs.meta => HideInNormalInspectorAttributeDrawer.cs.meta} (100%) rename Editor/AccessModifiers/{DrawerHideMethod.cs => HideMethodAttributeDrawer.cs} (80%) rename Editor/AccessModifiers/{DrawerHideMethod.cs.meta => HideMethodAttributeDrawer.cs.meta} (100%) rename Editor/AccessModifiers/{DrawerShowField.cs => ShowFieldAttributeDrawer.cs} (77%) rename Editor/AccessModifiers/{DrawerShowField.cs.meta => ShowFieldAttributeDrawer.cs.meta} (100%) rename Editor/AccessModifiers/{DrawerShowMethod.cs => ShowMethodAttributeDrawer.cs} (79%) rename Editor/AccessModifiers/{DrawerShowMethod.cs.meta => ShowMethodAttributeDrawer.cs.meta} (100%) rename Editor/Decorators/{DrawerHorizontalLine.cs => HorizontalLineAttributeDrawer.cs} (84%) rename Editor/Decorators/{DrawerHorizontalLine.cs.meta => HorizontalLineAttributeDrawer.cs.meta} (100%) rename Editor/Decorators/{DrawerMethodHeader.cs => MethodHeaderAttributeDrawer.cs} (76%) rename Editor/Decorators/{DrawerMethodHeader.cs.meta => MethodHeaderAttributeDrawer.cs.meta} (100%) rename Editor/Drawers/{DrawerEnumFlag.cs => EnumFlagAttributeDrawer.cs} (88%) rename Editor/Drawers/{DrawerEnumFlag.cs.meta => EnumFlagAttributeDrawer.cs.meta} (100%) rename Editor/Drawers/{DrawerFilePath.cs => FilePathAttributeDrawer.cs} (90%) rename Editor/Drawers/{DrawerFilePath.cs.meta => FilePathAttributeDrawer.cs.meta} (100%) rename Editor/Drawers/{DrawerFolderPath.cs => FolderPathAttributeDrawer.cs} (89%) rename Editor/Drawers/{DrawerFolderPath.cs.meta => FolderPathAttributeDrawer.cs.meta} (100%) rename Editor/Drawers/{DrawerIntToAnimatorParameter.cs => IntToAnimatorParameterAttributeDrawer.cs} (90%) rename Editor/Drawers/{DrawerIntToAnimatorParameter.cs.meta => IntToAnimatorParameterAttributeDrawer.cs.meta} (100%) rename Editor/Drawers/{DrawerIntToEnum.cs => IntToEnumAttributeDrawer.cs} (88%) rename Editor/Drawers/{DrawerIntToEnum.cs.meta => IntToEnumAttributeDrawer.cs.meta} (100%) rename Editor/Drawers/{DrawerIntToLayer.cs => IntToLayerAttributeDrawer.cs} (93%) rename Editor/Drawers/{DrawerIntToLayer.cs.meta => IntToLayerAttributeDrawer.cs.meta} (100%) rename Editor/Drawers/{DrawerMethodButton.cs => MethodButtonAttributeDrawer.cs} (75%) rename Editor/Drawers/{DrawerMethodButton.cs.meta => MethodButtonAttributeDrawer.cs.meta} (100%) rename Editor/Drawers/{DrawerNaming.cs => NamingAttributeDrawer.cs} (88%) rename Editor/Drawers/{DrawerNaming.cs.meta => NamingAttributeDrawer.cs.meta} (100%) rename Editor/Drawers/{DrawerPercentage.cs => PercentageAttributeDrawer.cs} (90%) rename Editor/Drawers/{DrawerPercentage.cs.meta => PercentageAttributeDrawer.cs.meta} (100%) rename Editor/Drawers/{DrawerPopupFromConst.cs => PopupFromConstAttributeDrawer.cs} (89%) rename Editor/Drawers/{DrawerPopupFromConst.cs.meta => PopupFromConstAttributeDrawer.cs.meta} (100%) rename Editor/Drawers/{DrawerQuaternionToEuler.cs => QuaternionToEulerAttributeDrawer.cs} (88%) rename Editor/Drawers/{DrawerQuaternionToEuler.cs.meta => QuaternionToEulerAttributeDrawer.cs.meta} (100%) rename Editor/Drawers/{DrawerSceneDropdown.cs => SceneDropdownAttributeDrawer.cs} (94%) rename Editor/Drawers/{DrawerSceneDropdown.cs.meta => SceneDropdownAttributeDrawer.cs.meta} (100%) rename Editor/Drawers/{DrawerSlider.cs => SliderAttributeDrawer.cs} (89%) rename Editor/Drawers/{DrawerSlider.cs.meta => SliderAttributeDrawer.cs.meta} (100%) rename Editor/Drawers/{DrawerStringToAnimatorParameter.cs => StringToAnimatorParameterAttributeDrawer.cs} (88%) rename Editor/Drawers/{DrawerStringToAnimatorParameter.cs.meta => StringToAnimatorParameterAttributeDrawer.cs.meta} (100%) rename Editor/Drawers/{DrawerStringToField.cs => StringToFieldAttributeDrawer.cs} (86%) rename Editor/Drawers/{DrawerStringToField.cs.meta => StringToFieldAttributeDrawer.cs.meta} (100%) rename Editor/Drawers/{DrawerStringToType.cs => StringToTypeAttributeDrawer.cs} (86%) rename Editor/Drawers/{DrawerStringToType.cs.meta => StringToTypeAttributeDrawer.cs.meta} (100%) rename Editor/Drawers/{DrawerTag.cs => TagAttributeDrawer.cs} (93%) rename Editor/Drawers/{DrawerTag.cs.meta => TagAttributeDrawer.cs.meta} (100%) rename Editor/Drawers/{DrawerUrlGoTo.cs => UrlGoToAttributeDrawer.cs} (90%) rename Editor/Drawers/{DrawerUrlGoTo.cs.meta => UrlGoToAttributeDrawer.cs.meta} (100%) rename Editor/ValueModifiers/{DrawerArrayIndex.cs => ArrayIndexAttributeDrawer.cs} (76%) rename Editor/ValueModifiers/{DrawerArrayIndex.cs.meta => ArrayIndexAttributeDrawer.cs.meta} (100%) rename Editor/ValueModifiers/{DrawerLargerThanField.cs => LargerThanFieldAttributeDrawer.cs} (69%) rename Editor/ValueModifiers/{DrawerLargerThanField.cs.meta => LargerThanFieldAttributeDrawer.cs.meta} (100%) rename Editor/ValueModifiers/{DrawerMaxValue.cs => MaxValueAttributeDrawer.cs} (93%) rename Editor/ValueModifiers/{DrawerMaxValue.cs.meta => MaxValueAttributeDrawer.cs.meta} (100%) rename Editor/ValueModifiers/{DrawerMinValue.cs => MinValueAttributeDrawer.cs} (93%) rename Editor/ValueModifiers/{DrawerMinValue.cs.meta => MinValueAttributeDrawer.cs.meta} (100%) rename Editor/ValueModifiers/{DrawerSmallerThanField.cs => SmallerThanFieldAttributeDrawer.cs} (69%) rename Editor/ValueModifiers/{DrawerSmallerThanField.cs.meta => SmallerThanFieldAttributeDrawer.cs.meta} (100%) create mode 100644 Runtime/AccessModifiers/DisableAttribute.cs rename Runtime/AccessModifiers/{Disable.cs.meta => DisableAttribute.cs.meta} (100%) rename Runtime/AccessModifiers/{ShowField.cs => DisableFieldAttribute.cs} (69%) rename Runtime/AccessModifiers/{DisableField.cs.meta => DisableFieldAttribute.cs.meta} (100%) create mode 100644 Runtime/AccessModifiers/DisableFieldInPlayModeAttribute.cs rename Runtime/AccessModifiers/{DisableFieldInPlayMode.cs.meta => DisableFieldInPlayModeAttribute.cs.meta} (100%) rename Runtime/AccessModifiers/{EnableMethod.cs => DisableMethodAttribute.cs} (69%) rename Runtime/AccessModifiers/{DisableMethod.cs.meta => DisableMethodAttribute.cs.meta} (100%) rename Runtime/AccessModifiers/{EnableFieldInPlayMode.cs => DisableMethodInPlayModeAttribute.cs} (60%) rename Runtime/AccessModifiers/{DisableMethodInPlayMode.cs.meta => DisableMethodInPlayModeAttribute.cs.meta} (100%) rename Runtime/AccessModifiers/{EnableField.cs => EnableFieldAttribute.cs} (69%) rename Runtime/AccessModifiers/{EnableField.cs.meta => EnableFieldAttribute.cs.meta} (100%) rename Runtime/AccessModifiers/{EnableMethodInPlayMode.cs => EnableFieldInPlayModeAttribute.cs} (60%) rename Runtime/AccessModifiers/{EnableFieldInPlayMode.cs.meta => EnableFieldInPlayModeAttribute.cs.meta} (100%) rename Runtime/AccessModifiers/{ShowMethod.cs => EnableMethodAttribute.cs} (69%) rename Runtime/AccessModifiers/{EnableMethod.cs.meta => EnableMethodAttribute.cs.meta} (100%) rename Runtime/AccessModifiers/{DisableMethodInPlayMode.cs => EnableMethodInPlayModeAttribute.cs} (60%) rename Runtime/AccessModifiers/{EnableMethodInPlayMode.cs.meta => EnableMethodInPlayModeAttribute.cs.meta} (100%) rename Runtime/AccessModifiers/{HideField.cs => HideFieldAttribute.cs} (69%) rename Runtime/AccessModifiers/{HideField.cs.meta => HideFieldAttribute.cs.meta} (100%) rename Runtime/AccessModifiers/{HideInNormalInspector.cs => HideInNormalInspectorAttribute.cs} (60%) rename Runtime/AccessModifiers/{HideInNormalInspector.cs.meta => HideInNormalInspectorAttribute.cs.meta} (100%) rename Runtime/AccessModifiers/{HideMethod.cs => HideMethodAttribute.cs} (69%) rename Runtime/AccessModifiers/{HideMethod.cs.meta => HideMethodAttribute.cs.meta} (100%) rename Runtime/AccessModifiers/{DisableField.cs => ShowFieldAttribute.cs} (70%) rename Runtime/AccessModifiers/{ShowField.cs.meta => ShowFieldAttribute.cs.meta} (100%) rename Runtime/AccessModifiers/{DisableMethod.cs => ShowMethodAttribute.cs} (70%) rename Runtime/AccessModifiers/{ShowMethod.cs.meta => ShowMethodAttribute.cs.meta} (100%) rename Runtime/Decorators/{HorizontalLine.cs => HorizontalLineAttribute.cs} (66%) rename Runtime/Decorators/{HorizontalLine.cs.meta => HorizontalLineAttribute.cs.meta} (100%) rename Runtime/Decorators/{MethodHeader.cs => MethodHeaderAttribute.cs} (65%) rename Runtime/Decorators/{MethodHeader.cs.meta => MethodHeaderAttribute.cs.meta} (100%) rename Runtime/Drawers/{QuaternionToEuler.cs => EnumFlagAttribute.cs} (68%) rename Runtime/Drawers/{EnumFlag.cs.meta => EnumFlagAttribute.cs.meta} (100%) rename Runtime/Drawers/{FilePath.cs => FilePathAttribute.cs} (66%) rename Runtime/Drawers/{FilePath.cs.meta => FilePathAttribute.cs.meta} (100%) rename Runtime/Drawers/{FolderPath.cs => FolderPathAttribute.cs} (65%) rename Runtime/Drawers/{FolderPath.cs.meta => FolderPathAttribute.cs.meta} (100%) rename Runtime/Drawers/{IntToAnimatorParameter.cs => IntToAnimatorParameterAttribute.cs} (63%) rename Runtime/Drawers/{IntToAnimatorParameter.cs.meta => IntToAnimatorParameterAttribute.cs.meta} (100%) rename Runtime/Drawers/{IntToEnum.cs => IntToEnumAttribute.cs} (85%) rename Runtime/Drawers/{IntToEnum.cs.meta => IntToEnumAttribute.cs.meta} (100%) rename Runtime/Drawers/{Percentage.cs => IntToLayerAttribute.cs} (66%) rename Runtime/Drawers/{IntToLayer.cs.meta => IntToLayerAttribute.cs.meta} (100%) rename Runtime/Drawers/{MethodButton.cs => MethodButtonAttribute.cs} (65%) rename Runtime/Drawers/{MethodButton.cs.meta => MethodButtonAttribute.cs.meta} (100%) rename Runtime/Drawers/{Naming.cs => NamingAttribute.cs} (90%) rename Runtime/Drawers/{Naming.cs.meta => NamingAttribute.cs.meta} (100%) create mode 100644 Runtime/Drawers/PercentageAttribute.cs rename Runtime/Drawers/{Percentage.cs.meta => PercentageAttribute.cs.meta} (100%) rename Runtime/Drawers/{StringToField.cs => PopupFromConstAttribute.cs} (64%) rename Runtime/Drawers/{PopupFromConst.cs.meta => PopupFromConstAttribute.cs.meta} (100%) rename Runtime/{AccessModifiers/DisableFieldInPlayMode.cs => Drawers/QuaternionToEulerAttribute.cs} (63%) rename Runtime/Drawers/{QuaternionToEuler.cs.meta => QuaternionToEulerAttribute.cs.meta} (100%) delete mode 100644 Runtime/Drawers/SceneDropdown.cs create mode 100644 Runtime/Drawers/SceneDropdownAttribute.cs rename Runtime/Drawers/{SceneDropdown.cs.meta => SceneDropdownAttribute.cs.meta} (100%) delete mode 100644 Runtime/Drawers/Slider.cs rename Runtime/{AccessModifiers/Disable.cs => Drawers/SliderAttribute.cs} (68%) rename Runtime/Drawers/{Slider.cs.meta => SliderAttribute.cs.meta} (100%) rename Runtime/Drawers/{StringToAnimatorParameter.cs => StringToAnimatorParameterAttribute.cs} (62%) rename Runtime/Drawers/{StringToAnimatorParameter.cs.meta => StringToAnimatorParameterAttribute.cs.meta} (100%) rename Runtime/Drawers/{PopupFromConst.cs => StringToFieldAttribute.cs} (65%) rename Runtime/Drawers/{StringToField.cs.meta => StringToFieldAttribute.cs.meta} (100%) rename Runtime/Drawers/{StringToType.cs => StringToTypeAttribute.cs} (66%) rename Runtime/Drawers/{StringToType.cs.meta => StringToTypeAttribute.cs.meta} (100%) delete mode 100644 Runtime/Drawers/Tag.cs rename Runtime/Drawers/{IntToLayer.cs => TagAttribute.cs} (69%) rename Runtime/Drawers/{Tag.cs.meta => TagAttribute.cs.meta} (100%) delete mode 100644 Runtime/Drawers/UrlGoTo.cs rename Runtime/Drawers/{EnumFlag.cs => UrlGoToAttribute.cs} (67%) rename Runtime/Drawers/{UrlGoTo.cs.meta => UrlGoToAttribute.cs.meta} (100%) rename Runtime/ValueModifiers/{ArrayIndex.cs => ArrayIndexAttribute.cs} (65%) rename Runtime/ValueModifiers/{ArrayIndex.cs.meta => ArrayIndexAttribute.cs.meta} (100%) rename Runtime/ValueModifiers/{LargerThanField.cs => LargerThanFieldAttribute.cs} (63%) rename Runtime/ValueModifiers/{LargerThanField.cs.meta => LargerThanFieldAttribute.cs.meta} (100%) rename Runtime/ValueModifiers/{MaxValue.cs => MaxValueAttribute.cs} (72%) rename Runtime/ValueModifiers/{MaxValue.cs.meta => MaxValueAttribute.cs.meta} (100%) rename Runtime/ValueModifiers/{MinValue.cs => MinValueAttribute.cs} (72%) rename Runtime/ValueModifiers/{MinValue.cs.meta => MinValueAttribute.cs.meta} (100%) rename Runtime/ValueModifiers/{SmallerThanField.cs => SmallerThanFieldAttribute.cs} (63%) rename Runtime/ValueModifiers/{SmallerThanField.cs.meta => SmallerThanFieldAttribute.cs.meta} (100%) diff --git a/Editor/AccessModifiers/DrawerDisable.cs b/Editor/AccessModifiers/DisableAttributeDrawer.cs similarity index 72% rename from Editor/AccessModifiers/DrawerDisable.cs rename to Editor/AccessModifiers/DisableAttributeDrawer.cs index 564d8cb..7d92769 100644 --- a/Editor/AccessModifiers/DrawerDisable.cs +++ b/Editor/AccessModifiers/DisableAttributeDrawer.cs @@ -2,8 +2,8 @@ namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(Disable))] - internal sealed class DrawerDisable : AccessModifierPropertyDrawer + [CustomPropertyDrawer(typeof(DisableAttribute))] + internal sealed class DisableAttributeDrawer : AccessModifierPropertyDrawer { public override EAccessType GetAccessType(AccessModifierPropertyAttribute attribute, SerializedProperty property, EAccessType currentAccessType) { diff --git a/Editor/AccessModifiers/DrawerDisable.cs.meta b/Editor/AccessModifiers/DisableAttributeDrawer.cs.meta similarity index 100% rename from Editor/AccessModifiers/DrawerDisable.cs.meta rename to Editor/AccessModifiers/DisableAttributeDrawer.cs.meta diff --git a/Editor/AccessModifiers/DrawerDisableField.cs b/Editor/AccessModifiers/DisableFieldAttributeDrawer.cs similarity index 70% rename from Editor/AccessModifiers/DrawerDisableField.cs rename to Editor/AccessModifiers/DisableFieldAttributeDrawer.cs index d4ec153..f5ebac8 100644 --- a/Editor/AccessModifiers/DrawerDisableField.cs +++ b/Editor/AccessModifiers/DisableFieldAttributeDrawer.cs @@ -2,12 +2,12 @@ namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(DisableField))] - internal sealed class DrawerDisableField : AccessModifierPropertyDrawer + [CustomPropertyDrawer(typeof(DisableFieldAttribute))] + internal sealed class DisableFieldAttributeDrawer : AccessModifierPropertyDrawer { public override EAccessType GetAccessType(AccessModifierPropertyAttribute attribute, SerializedProperty property, EAccessType currentAccessType) { - var att = (DisableField)attribute; + var att = (DisableFieldAttribute)attribute; if (currentAccessType == EAccessType.Enabled && property.IsSiblingValue(att.fieldName, att.fieldValue, att.useFieldValue)) currentAccessType = EAccessType.ReadOnly; diff --git a/Editor/AccessModifiers/DrawerDisableField.cs.meta b/Editor/AccessModifiers/DisableFieldAttributeDrawer.cs.meta similarity index 100% rename from Editor/AccessModifiers/DrawerDisableField.cs.meta rename to Editor/AccessModifiers/DisableFieldAttributeDrawer.cs.meta diff --git a/Editor/AccessModifiers/DrawerDisableFieldInPlayMode.cs b/Editor/AccessModifiers/DisableFieldInPlayModeAttributeDrawer.cs similarity index 72% rename from Editor/AccessModifiers/DrawerDisableFieldInPlayMode.cs rename to Editor/AccessModifiers/DisableFieldInPlayModeAttributeDrawer.cs index 3f36c5f..37ac0d2 100644 --- a/Editor/AccessModifiers/DrawerDisableFieldInPlayMode.cs +++ b/Editor/AccessModifiers/DisableFieldInPlayModeAttributeDrawer.cs @@ -3,8 +3,8 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(DisableFieldInPlayMode))] - internal sealed class DrawerDisableFieldInPlayMode : AccessModifierPropertyDrawer + [CustomPropertyDrawer(typeof(DisableFieldInPlayModeAttribute))] + internal sealed class DisableFieldInPlayModeAttributeDrawer : AccessModifierPropertyDrawer { public override EAccessType GetAccessType(AccessModifierPropertyAttribute attribute, SerializedProperty property, EAccessType currentAccessType) { diff --git a/Editor/AccessModifiers/DrawerDisableFieldInPlayMode.cs.meta b/Editor/AccessModifiers/DisableFieldInPlayModeAttributeDrawer.cs.meta similarity index 100% rename from Editor/AccessModifiers/DrawerDisableFieldInPlayMode.cs.meta rename to Editor/AccessModifiers/DisableFieldInPlayModeAttributeDrawer.cs.meta diff --git a/Editor/AccessModifiers/DrawerDisableMethod.cs b/Editor/AccessModifiers/DisableMethodAttributeDrawer.cs similarity index 74% rename from Editor/AccessModifiers/DrawerDisableMethod.cs rename to Editor/AccessModifiers/DisableMethodAttributeDrawer.cs index 74263f6..b85b427 100644 --- a/Editor/AccessModifiers/DrawerDisableMethod.cs +++ b/Editor/AccessModifiers/DisableMethodAttributeDrawer.cs @@ -4,12 +4,12 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomMethodDrawer(typeof(DisableMethod))] - internal sealed class DrawerDisableMethod : AccessModifierMethodDrawer + [CustomMethodDrawer(typeof(DisableMethodAttribute))] + internal sealed class DisableMethodAttributeDrawer : AccessModifierMethodDrawer { public override EAccessType GetAccessType(AccessModifierMethodAttribute attribute, Object target, MethodInfo methodInfo, EAccessType currentAccessType) { - var att = (DisableMethod)attribute; + var att = (DisableMethodAttribute)attribute; if (currentAccessType == EAccessType.Enabled && EditorSerializedPropertyUtility.IsValue(target, att.fieldName, att.fieldValue, att.useFieldValue)) currentAccessType = EAccessType.ReadOnly; diff --git a/Editor/AccessModifiers/DrawerDisableMethod.cs.meta b/Editor/AccessModifiers/DisableMethodAttributeDrawer.cs.meta similarity index 100% rename from Editor/AccessModifiers/DrawerDisableMethod.cs.meta rename to Editor/AccessModifiers/DisableMethodAttributeDrawer.cs.meta diff --git a/Editor/AccessModifiers/DrawerDisableMethodInPlayMode.cs b/Editor/AccessModifiers/DisableMethodInPlayModeAttributeDrawer.cs similarity index 73% rename from Editor/AccessModifiers/DrawerDisableMethodInPlayMode.cs rename to Editor/AccessModifiers/DisableMethodInPlayModeAttributeDrawer.cs index 0814041..85ecac0 100644 --- a/Editor/AccessModifiers/DrawerDisableMethodInPlayMode.cs +++ b/Editor/AccessModifiers/DisableMethodInPlayModeAttributeDrawer.cs @@ -3,8 +3,8 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomMethodDrawer(typeof(DisableMethodInPlayMode))] - internal sealed class DrawerDisableMethodInPlayMode : AccessModifierMethodDrawer + [CustomMethodDrawer(typeof(DisableMethodInPlayModeAttribute))] + internal sealed class DisableMethodInPlayModeAttributeDrawer : AccessModifierMethodDrawer { public override EAccessType GetAccessType(AccessModifierMethodAttribute attribute, Object target, MethodInfo methodInfo, EAccessType currentAccessType) { diff --git a/Editor/AccessModifiers/DrawerDisableMethodInPlayMode.cs.meta b/Editor/AccessModifiers/DisableMethodInPlayModeAttributeDrawer.cs.meta similarity index 100% rename from Editor/AccessModifiers/DrawerDisableMethodInPlayMode.cs.meta rename to Editor/AccessModifiers/DisableMethodInPlayModeAttributeDrawer.cs.meta diff --git a/Editor/AccessModifiers/DrawerEnableField.cs b/Editor/AccessModifiers/EnableFieldAttributeDrawer.cs similarity index 71% rename from Editor/AccessModifiers/DrawerEnableField.cs rename to Editor/AccessModifiers/EnableFieldAttributeDrawer.cs index 1e94494..f85f88e 100644 --- a/Editor/AccessModifiers/DrawerEnableField.cs +++ b/Editor/AccessModifiers/EnableFieldAttributeDrawer.cs @@ -2,12 +2,12 @@ namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(EnableField))] - internal sealed class DrawerEnableField : AccessModifierPropertyDrawer + [CustomPropertyDrawer(typeof(EnableFieldAttribute))] + internal sealed class EnableFieldAttributeDrawer : AccessModifierPropertyDrawer { public override EAccessType GetAccessType(AccessModifierPropertyAttribute attribute, SerializedProperty property, EAccessType currentAccessType) { - var att = (EnableField)attribute; + var att = (EnableFieldAttribute)attribute; if (currentAccessType == EAccessType.Enabled && !property.IsSiblingValue(att.fieldName, att.fieldValue, att.useFieldValue)) currentAccessType = EAccessType.ReadOnly; diff --git a/Editor/AccessModifiers/DrawerEnableField.cs.meta b/Editor/AccessModifiers/EnableFieldAttributeDrawer.cs.meta similarity index 100% rename from Editor/AccessModifiers/DrawerEnableField.cs.meta rename to Editor/AccessModifiers/EnableFieldAttributeDrawer.cs.meta diff --git a/Editor/AccessModifiers/DrawerEnableFieldInPlayMode.cs b/Editor/AccessModifiers/EnableFieldInPlayModeAttributeDrawer.cs similarity index 73% rename from Editor/AccessModifiers/DrawerEnableFieldInPlayMode.cs rename to Editor/AccessModifiers/EnableFieldInPlayModeAttributeDrawer.cs index 167cd52..31535d6 100644 --- a/Editor/AccessModifiers/DrawerEnableFieldInPlayMode.cs +++ b/Editor/AccessModifiers/EnableFieldInPlayModeAttributeDrawer.cs @@ -3,8 +3,8 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(EnableFieldInPlayMode))] - internal sealed class DrawerEnableFieldInPlayMode : AccessModifierPropertyDrawer + [CustomPropertyDrawer(typeof(EnableFieldInPlayModeAttribute))] + internal sealed class EnableFieldInPlayModeAttributeDrawer : AccessModifierPropertyDrawer { public override EAccessType GetAccessType(AccessModifierPropertyAttribute attribute, SerializedProperty property, EAccessType currentAccessType) { diff --git a/Editor/AccessModifiers/DrawerEnableFieldInPlayMode.cs.meta b/Editor/AccessModifiers/EnableFieldInPlayModeAttributeDrawer.cs.meta similarity index 100% rename from Editor/AccessModifiers/DrawerEnableFieldInPlayMode.cs.meta rename to Editor/AccessModifiers/EnableFieldInPlayModeAttributeDrawer.cs.meta diff --git a/Editor/AccessModifiers/DrawerEnableMethod.cs b/Editor/AccessModifiers/EnableMethodAttributeDrawer.cs similarity index 74% rename from Editor/AccessModifiers/DrawerEnableMethod.cs rename to Editor/AccessModifiers/EnableMethodAttributeDrawer.cs index 41f3cd9..c1a04cf 100644 --- a/Editor/AccessModifiers/DrawerEnableMethod.cs +++ b/Editor/AccessModifiers/EnableMethodAttributeDrawer.cs @@ -4,12 +4,12 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomMethodDrawer(typeof(EnableMethod))] - internal sealed class DrawerEnableMethod : AccessModifierMethodDrawer + [CustomMethodDrawer(typeof(EnableMethodAttribute))] + internal sealed class EnableMethodAttributeDrawer : AccessModifierMethodDrawer { public override EAccessType GetAccessType(AccessModifierMethodAttribute attribute, Object target, MethodInfo methodInfo, EAccessType currentAccessType) { - var att = (EnableMethod)attribute; + var att = (EnableMethodAttribute)attribute; if (currentAccessType == EAccessType.Enabled && !EditorSerializedPropertyUtility.IsValue(target, att.fieldName, att.fieldValue, att.useFieldValue)) currentAccessType = EAccessType.ReadOnly; diff --git a/Editor/AccessModifiers/DrawerEnableMethod.cs.meta b/Editor/AccessModifiers/EnableMethodAttributeDrawer.cs.meta similarity index 100% rename from Editor/AccessModifiers/DrawerEnableMethod.cs.meta rename to Editor/AccessModifiers/EnableMethodAttributeDrawer.cs.meta diff --git a/Editor/AccessModifiers/DrawerEnableMethodInPlayMode.cs b/Editor/AccessModifiers/EnableMethodInPlayModeAttributeDrawer.cs similarity index 74% rename from Editor/AccessModifiers/DrawerEnableMethodInPlayMode.cs rename to Editor/AccessModifiers/EnableMethodInPlayModeAttributeDrawer.cs index 81800e9..d796104 100644 --- a/Editor/AccessModifiers/DrawerEnableMethodInPlayMode.cs +++ b/Editor/AccessModifiers/EnableMethodInPlayModeAttributeDrawer.cs @@ -3,8 +3,8 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomMethodDrawer(typeof(EnableMethodInPlayMode))] - internal sealed class DrawerEnableMethodInPlayMode : AccessModifierMethodDrawer + [CustomMethodDrawer(typeof(EnableMethodInPlayModeAttribute))] + internal sealed class EnableMethodInPlayModeAttributeDrawer : AccessModifierMethodDrawer { public override EAccessType GetAccessType(AccessModifierMethodAttribute attribute, Object target, MethodInfo methodInfo, EAccessType currentAccessType) { diff --git a/Editor/AccessModifiers/DrawerEnableMethodInPlayMode.cs.meta b/Editor/AccessModifiers/EnableMethodInPlayModeAttributeDrawer.cs.meta similarity index 100% rename from Editor/AccessModifiers/DrawerEnableMethodInPlayMode.cs.meta rename to Editor/AccessModifiers/EnableMethodInPlayModeAttributeDrawer.cs.meta diff --git a/Editor/AccessModifiers/DrawerHideField.cs b/Editor/AccessModifiers/HideFieldAttributeDrawer.cs similarity index 78% rename from Editor/AccessModifiers/DrawerHideField.cs rename to Editor/AccessModifiers/HideFieldAttributeDrawer.cs index 49125d0..153c94f 100644 --- a/Editor/AccessModifiers/DrawerHideField.cs +++ b/Editor/AccessModifiers/HideFieldAttributeDrawer.cs @@ -2,8 +2,8 @@ namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(HideField))] - internal sealed class DrawerHideField : AccessModifierPropertyDrawer + [CustomPropertyDrawer(typeof(HideFieldAttribute))] + internal sealed class HideFieldAttributeDrawer : AccessModifierPropertyDrawer { public override EAccessType GetAccessType(AccessModifierPropertyAttribute attribute, SerializedProperty property, EAccessType currentAccessType) { @@ -15,7 +15,7 @@ namespace Module.Inspector.Editor private static bool GetHideValue(AccessModifierPropertyAttribute attribute, SerializedProperty sp) { - var att = (HideField)attribute; + var att = (HideFieldAttribute)attribute; return string.IsNullOrEmpty(att.fieldName) || sp.IsSiblingValue(att.fieldName, att.fieldValue, att.useFieldValue); } } diff --git a/Editor/AccessModifiers/DrawerHideField.cs.meta b/Editor/AccessModifiers/HideFieldAttributeDrawer.cs.meta similarity index 100% rename from Editor/AccessModifiers/DrawerHideField.cs.meta rename to Editor/AccessModifiers/HideFieldAttributeDrawer.cs.meta diff --git a/Editor/AccessModifiers/DrawerHideInNormalInspector.cs b/Editor/AccessModifiers/HideInNormalInspectorAttributeDrawer.cs similarity index 66% rename from Editor/AccessModifiers/DrawerHideInNormalInspector.cs rename to Editor/AccessModifiers/HideInNormalInspectorAttributeDrawer.cs index 0e49af5..e8c21d0 100644 --- a/Editor/AccessModifiers/DrawerHideInNormalInspector.cs +++ b/Editor/AccessModifiers/HideInNormalInspectorAttributeDrawer.cs @@ -3,8 +3,8 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomMethodDrawer(typeof(HideInNormalInspector))] - internal sealed class DrawerHideInNormalInspector : AccessModifierMethodDrawer + [CustomMethodDrawer(typeof(HideInNormalInspectorAttribute))] + internal sealed class HideInNormalInspectorAttributeDrawer : AccessModifierMethodDrawer { public override EAccessType GetAccessType(AccessModifierMethodAttribute attribute, Object target, MethodInfo methodInfo, EAccessType currentAccessType) { diff --git a/Editor/AccessModifiers/DrawerHideInNormalInspector.cs.meta b/Editor/AccessModifiers/HideInNormalInspectorAttributeDrawer.cs.meta similarity index 100% rename from Editor/AccessModifiers/DrawerHideInNormalInspector.cs.meta rename to Editor/AccessModifiers/HideInNormalInspectorAttributeDrawer.cs.meta diff --git a/Editor/AccessModifiers/DrawerHideMethod.cs b/Editor/AccessModifiers/HideMethodAttributeDrawer.cs similarity index 80% rename from Editor/AccessModifiers/DrawerHideMethod.cs rename to Editor/AccessModifiers/HideMethodAttributeDrawer.cs index b9407f1..d212969 100644 --- a/Editor/AccessModifiers/DrawerHideMethod.cs +++ b/Editor/AccessModifiers/HideMethodAttributeDrawer.cs @@ -4,8 +4,8 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomMethodDrawer(typeof(HideMethod))] - internal sealed class DrawerHideMethod : AccessModifierMethodDrawer + [CustomMethodDrawer(typeof(HideMethodAttribute))] + internal sealed class HideMethodAttributeDrawer : AccessModifierMethodDrawer { public override EAccessType GetAccessType(AccessModifierMethodAttribute attribute, Object target, MethodInfo methodInfo, EAccessType currentAccessType) { @@ -17,7 +17,7 @@ namespace Module.Inspector.Editor private static bool GetHideValue(AccessModifierMethodAttribute attribute, Object target) { - var att = (HideMethod)attribute; + var att = (HideMethodAttribute)attribute; return string.IsNullOrEmpty(att.fieldName) || EditorSerializedPropertyUtility.IsValue(target, att.fieldName, att.fieldValue, att.useFieldValue); } } diff --git a/Editor/AccessModifiers/DrawerHideMethod.cs.meta b/Editor/AccessModifiers/HideMethodAttributeDrawer.cs.meta similarity index 100% rename from Editor/AccessModifiers/DrawerHideMethod.cs.meta rename to Editor/AccessModifiers/HideMethodAttributeDrawer.cs.meta diff --git a/Editor/AccessModifiers/DrawerShowField.cs b/Editor/AccessModifiers/ShowFieldAttributeDrawer.cs similarity index 77% rename from Editor/AccessModifiers/DrawerShowField.cs rename to Editor/AccessModifiers/ShowFieldAttributeDrawer.cs index 6b43e02..e66440e 100644 --- a/Editor/AccessModifiers/DrawerShowField.cs +++ b/Editor/AccessModifiers/ShowFieldAttributeDrawer.cs @@ -2,8 +2,8 @@ namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(ShowField))] - internal sealed class DrawerShowField : AccessModifierPropertyDrawer + [CustomPropertyDrawer(typeof(ShowFieldAttribute))] + internal sealed class ShowFieldAttributeDrawer : AccessModifierPropertyDrawer { public override EAccessType GetAccessType(AccessModifierPropertyAttribute attribute, SerializedProperty property, EAccessType currentAccessType) { @@ -15,7 +15,7 @@ namespace Module.Inspector.Editor private static bool GetVisibleValue(AccessModifierPropertyAttribute attribute, SerializedProperty sp) { - var att = (ShowField)attribute; + var att = (ShowFieldAttribute)attribute; return sp.IsSiblingValue(att.fieldName, att.fieldValue, att.useFieldValue); } } diff --git a/Editor/AccessModifiers/DrawerShowField.cs.meta b/Editor/AccessModifiers/ShowFieldAttributeDrawer.cs.meta similarity index 100% rename from Editor/AccessModifiers/DrawerShowField.cs.meta rename to Editor/AccessModifiers/ShowFieldAttributeDrawer.cs.meta diff --git a/Editor/AccessModifiers/DrawerShowMethod.cs b/Editor/AccessModifiers/ShowMethodAttributeDrawer.cs similarity index 79% rename from Editor/AccessModifiers/DrawerShowMethod.cs rename to Editor/AccessModifiers/ShowMethodAttributeDrawer.cs index a1a799a..d87c78f 100644 --- a/Editor/AccessModifiers/DrawerShowMethod.cs +++ b/Editor/AccessModifiers/ShowMethodAttributeDrawer.cs @@ -4,8 +4,8 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomMethodDrawer(typeof(ShowMethod))] - internal sealed class DrawerShowMethod : AccessModifierMethodDrawer + [CustomMethodDrawer(typeof(ShowMethodAttribute))] + internal sealed class ShowMethodAttributeDrawer : AccessModifierMethodDrawer { public override EAccessType GetAccessType(AccessModifierMethodAttribute attribute, Object target, MethodInfo methodInfo, EAccessType currentAccessType) { @@ -17,7 +17,7 @@ namespace Module.Inspector.Editor private static bool GetVisibleValue(AccessModifierMethodAttribute attribute, Object target) { - var att = (ShowMethod)attribute; + var att = (ShowMethodAttribute)attribute; return EditorSerializedPropertyUtility.IsValue(target, att.fieldName, att.fieldValue, att.useFieldValue); } } diff --git a/Editor/AccessModifiers/DrawerShowMethod.cs.meta b/Editor/AccessModifiers/ShowMethodAttributeDrawer.cs.meta similarity index 100% rename from Editor/AccessModifiers/DrawerShowMethod.cs.meta rename to Editor/AccessModifiers/ShowMethodAttributeDrawer.cs.meta diff --git a/Editor/Decorators/DrawerHorizontalLine.cs b/Editor/Decorators/HorizontalLineAttributeDrawer.cs similarity index 84% rename from Editor/Decorators/DrawerHorizontalLine.cs rename to Editor/Decorators/HorizontalLineAttributeDrawer.cs index ba8b535..e5ae4da 100644 --- a/Editor/Decorators/DrawerHorizontalLine.cs +++ b/Editor/Decorators/HorizontalLineAttributeDrawer.cs @@ -3,15 +3,15 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(HorizontalLine))] - public sealed class DrawerHorizontalLine : DecoratorDrawer + [CustomPropertyDrawer(typeof(HorizontalLineAttribute))] + public sealed class HorizontalLineAttributeDrawer : DecoratorDrawer { private const float LINE_HEIGHT = 1.0f; private const float VERTICAL_SPACING = 4.0f; public override void OnGUI(Rect position) { - var att = (HorizontalLine)attribute; + var att = (HorizontalLineAttribute)attribute; // Title if (!string.IsNullOrEmpty(att.title)) diff --git a/Editor/Decorators/DrawerHorizontalLine.cs.meta b/Editor/Decorators/HorizontalLineAttributeDrawer.cs.meta similarity index 100% rename from Editor/Decorators/DrawerHorizontalLine.cs.meta rename to Editor/Decorators/HorizontalLineAttributeDrawer.cs.meta diff --git a/Editor/Decorators/DrawerMethodHeader.cs b/Editor/Decorators/MethodHeaderAttributeDrawer.cs similarity index 76% rename from Editor/Decorators/DrawerMethodHeader.cs rename to Editor/Decorators/MethodHeaderAttributeDrawer.cs index 2969b4b..0cea3e2 100644 --- a/Editor/Decorators/DrawerMethodHeader.cs +++ b/Editor/Decorators/MethodHeaderAttributeDrawer.cs @@ -3,12 +3,12 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomMethodDrawer(typeof(MethodHeader))] - public sealed class DrawerMethodHeader : DecoratorMethodDrawer + [CustomMethodDrawer(typeof(MethodHeaderAttribute))] + public sealed class MethodHeaderAttributeDrawer : DecoratorMethodDrawer { public override bool Draw(Rect position, DecoratorMethodAttribute attribute) { - var att = (MethodHeader)attribute; + var att = (MethodHeaderAttribute)attribute; if (string.IsNullOrEmpty(att.title)) return false; @@ -25,7 +25,7 @@ namespace Module.Inspector.Editor public override float GetHeight(DecoratorMethodAttribute attribute) { - var att = (MethodHeader)attribute; + var att = (MethodHeaderAttribute)attribute; return !string.IsNullOrEmpty(att.title) ? EditorGUIUtility.singleLineHeight + EditorGUIUtility.standardVerticalSpacing : 0.0f; } } diff --git a/Editor/Decorators/DrawerMethodHeader.cs.meta b/Editor/Decorators/MethodHeaderAttributeDrawer.cs.meta similarity index 100% rename from Editor/Decorators/DrawerMethodHeader.cs.meta rename to Editor/Decorators/MethodHeaderAttributeDrawer.cs.meta diff --git a/Editor/Drawers/DrawerEnumFlag.cs b/Editor/Drawers/EnumFlagAttributeDrawer.cs similarity index 88% rename from Editor/Drawers/DrawerEnumFlag.cs rename to Editor/Drawers/EnumFlagAttributeDrawer.cs index 7d36e61..b94d766 100644 --- a/Editor/Drawers/DrawerEnumFlag.cs +++ b/Editor/Drawers/EnumFlagAttributeDrawer.cs @@ -5,8 +5,8 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(EnumFlag))] - internal sealed class DrawerEnumFlag : DrawerPropertyDrawer + [CustomPropertyDrawer(typeof(EnumFlagAttribute))] + internal sealed class EnumFlagAttributeDrawer : DrawerPropertyDrawer { public override bool Draw(Rect position, DrawerPropertyAttribute attribute, SerializedProperty property, GUIContent label, EditorPropertyUtility.Result result) { diff --git a/Editor/Drawers/DrawerEnumFlag.cs.meta b/Editor/Drawers/EnumFlagAttributeDrawer.cs.meta similarity index 100% rename from Editor/Drawers/DrawerEnumFlag.cs.meta rename to Editor/Drawers/EnumFlagAttributeDrawer.cs.meta diff --git a/Editor/Drawers/DrawerFilePath.cs b/Editor/Drawers/FilePathAttributeDrawer.cs similarity index 90% rename from Editor/Drawers/DrawerFilePath.cs rename to Editor/Drawers/FilePathAttributeDrawer.cs index b677624..e312c12 100644 --- a/Editor/Drawers/DrawerFilePath.cs +++ b/Editor/Drawers/FilePathAttributeDrawer.cs @@ -4,15 +4,15 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(FilePath))] - internal sealed class DrawerFilePath : DrawerPropertyDrawer + [CustomPropertyDrawer(typeof(FilePathAttribute))] + internal sealed class FilePathAttributeDrawer : DrawerPropertyDrawer { public override bool Draw(Rect position, DrawerPropertyAttribute attribute, SerializedProperty property, GUIContent label, EditorPropertyUtility.Result result) { if (property.propertyType != SerializedPropertyType.String) return false; - var att = (FilePath)attribute; + var att = (FilePathAttribute)attribute; EditorGUI.BeginProperty(position, label, property); { diff --git a/Editor/Drawers/DrawerFilePath.cs.meta b/Editor/Drawers/FilePathAttributeDrawer.cs.meta similarity index 100% rename from Editor/Drawers/DrawerFilePath.cs.meta rename to Editor/Drawers/FilePathAttributeDrawer.cs.meta diff --git a/Editor/Drawers/DrawerFolderPath.cs b/Editor/Drawers/FolderPathAttributeDrawer.cs similarity index 89% rename from Editor/Drawers/DrawerFolderPath.cs rename to Editor/Drawers/FolderPathAttributeDrawer.cs index 5b84d32..175d849 100644 --- a/Editor/Drawers/DrawerFolderPath.cs +++ b/Editor/Drawers/FolderPathAttributeDrawer.cs @@ -4,15 +4,15 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(FolderPath))] - internal sealed class DrawerFolderPath : DrawerPropertyDrawer + [CustomPropertyDrawer(typeof(FolderPathAttribute))] + internal sealed class FolderPathAttributeDrawer : DrawerPropertyDrawer { public override bool Draw(Rect position, DrawerPropertyAttribute attribute, SerializedProperty property, GUIContent label, EditorPropertyUtility.Result result) { if (property.propertyType != SerializedPropertyType.String) return false; - var att = (FolderPath)attribute; + var att = (FolderPathAttribute)attribute; EditorGUI.BeginProperty(position, label, property); { diff --git a/Editor/Drawers/DrawerFolderPath.cs.meta b/Editor/Drawers/FolderPathAttributeDrawer.cs.meta similarity index 100% rename from Editor/Drawers/DrawerFolderPath.cs.meta rename to Editor/Drawers/FolderPathAttributeDrawer.cs.meta diff --git a/Editor/Drawers/DrawerIntToAnimatorParameter.cs b/Editor/Drawers/IntToAnimatorParameterAttributeDrawer.cs similarity index 90% rename from Editor/Drawers/DrawerIntToAnimatorParameter.cs rename to Editor/Drawers/IntToAnimatorParameterAttributeDrawer.cs index d7bf30c..122404d 100644 --- a/Editor/Drawers/DrawerIntToAnimatorParameter.cs +++ b/Editor/Drawers/IntToAnimatorParameterAttributeDrawer.cs @@ -5,8 +5,8 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(IntToAnimatorParameter))] - internal sealed class DrawerIntToAnimatorParameter : DrawerPropertyDrawer + [CustomPropertyDrawer(typeof(IntToAnimatorParameterAttribute))] + internal sealed class IntToAnimatorParameterAttributeDrawer : DrawerPropertyDrawer { private readonly List names = new List(); private readonly List hashes = new List(); @@ -17,7 +17,7 @@ namespace Module.Inspector.Editor if (property.propertyType != SerializedPropertyType.Integer) return false; - var att = (IntToAnimatorParameter)attribute; + var att = (IntToAnimatorParameterAttribute)attribute; SerializedProperty spSibling = property.GetSibling(att.animatorFieldName); if (spSibling == null) @@ -50,7 +50,7 @@ namespace Module.Inspector.Editor if (property.propertyType != SerializedPropertyType.Integer) return "Only supports integers"; - var att = (IntToAnimatorParameter)attribute; + var att = (IntToAnimatorParameterAttribute)attribute; return $"Missing field: {att.animatorFieldName}"; } diff --git a/Editor/Drawers/DrawerIntToAnimatorParameter.cs.meta b/Editor/Drawers/IntToAnimatorParameterAttributeDrawer.cs.meta similarity index 100% rename from Editor/Drawers/DrawerIntToAnimatorParameter.cs.meta rename to Editor/Drawers/IntToAnimatorParameterAttributeDrawer.cs.meta diff --git a/Editor/Drawers/DrawerIntToEnum.cs b/Editor/Drawers/IntToEnumAttributeDrawer.cs similarity index 88% rename from Editor/Drawers/DrawerIntToEnum.cs rename to Editor/Drawers/IntToEnumAttributeDrawer.cs index 24ddcb0..46100f8 100644 --- a/Editor/Drawers/DrawerIntToEnum.cs +++ b/Editor/Drawers/IntToEnumAttributeDrawer.cs @@ -5,8 +5,8 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(IntToEnum))] - internal sealed class DrawerIntToEnum : DrawerPropertyDrawer + [CustomPropertyDrawer(typeof(IntToEnumAttribute))] + internal sealed class IntToEnumAttributeDrawer : DrawerPropertyDrawer { private GUIContent[] names; private int[] values; @@ -16,7 +16,7 @@ namespace Module.Inspector.Editor if (property.propertyType != SerializedPropertyType.Integer) return false; - var att = (IntToEnum)attribute; + var att = (IntToEnumAttribute)attribute; FetchLayerNames(att); EditorGUI.BeginChangeCheck(); @@ -42,7 +42,7 @@ namespace Module.Inspector.Editor return "Only supports integers"; } - private void FetchLayerNames(IntToEnum attribute) + private void FetchLayerNames(IntToEnumAttribute attribute) { if (names != null) return; diff --git a/Editor/Drawers/DrawerIntToEnum.cs.meta b/Editor/Drawers/IntToEnumAttributeDrawer.cs.meta similarity index 100% rename from Editor/Drawers/DrawerIntToEnum.cs.meta rename to Editor/Drawers/IntToEnumAttributeDrawer.cs.meta diff --git a/Editor/Drawers/DrawerIntToLayer.cs b/Editor/Drawers/IntToLayerAttributeDrawer.cs similarity index 93% rename from Editor/Drawers/DrawerIntToLayer.cs rename to Editor/Drawers/IntToLayerAttributeDrawer.cs index 4b57e27..c36ca77 100644 --- a/Editor/Drawers/DrawerIntToLayer.cs +++ b/Editor/Drawers/IntToLayerAttributeDrawer.cs @@ -6,8 +6,8 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(IntToLayer))] - internal sealed class DrawerIntToLayer : DrawerPropertyDrawer + [CustomPropertyDrawer(typeof(IntToLayerAttribute))] + internal sealed class IntToLayerAttributeDrawer : DrawerPropertyDrawer { private static GUIContent[] NAMES; private static int[] INDICES; diff --git a/Editor/Drawers/DrawerIntToLayer.cs.meta b/Editor/Drawers/IntToLayerAttributeDrawer.cs.meta similarity index 100% rename from Editor/Drawers/DrawerIntToLayer.cs.meta rename to Editor/Drawers/IntToLayerAttributeDrawer.cs.meta diff --git a/Editor/Drawers/DrawerMethodButton.cs b/Editor/Drawers/MethodButtonAttributeDrawer.cs similarity index 75% rename from Editor/Drawers/DrawerMethodButton.cs rename to Editor/Drawers/MethodButtonAttributeDrawer.cs index 45aca67..7b69d8f 100644 --- a/Editor/Drawers/DrawerMethodButton.cs +++ b/Editor/Drawers/MethodButtonAttributeDrawer.cs @@ -3,12 +3,12 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomMethodDrawer(typeof(MethodButton))] - internal sealed class DrawerMethodButton : DrawerMethodDrawer + [CustomMethodDrawer(typeof(MethodButtonAttribute))] + internal sealed class MethodButtonAttributeDrawer : DrawerMethodDrawer { public override bool Draw(Rect position, DrawerMethodAttribute attribute, Object target, MethodInfo methodInfo) { - var att = (MethodButton)attribute; + var att = (MethodButtonAttribute)attribute; string name = string.IsNullOrEmpty(att.name) ? methodInfo.Name : att.name; if (GUI.Button(position, name)) diff --git a/Editor/Drawers/DrawerMethodButton.cs.meta b/Editor/Drawers/MethodButtonAttributeDrawer.cs.meta similarity index 100% rename from Editor/Drawers/DrawerMethodButton.cs.meta rename to Editor/Drawers/MethodButtonAttributeDrawer.cs.meta diff --git a/Editor/Drawers/DrawerNaming.cs b/Editor/Drawers/NamingAttributeDrawer.cs similarity index 88% rename from Editor/Drawers/DrawerNaming.cs rename to Editor/Drawers/NamingAttributeDrawer.cs index 6576f1f..660be3e 100644 --- a/Editor/Drawers/DrawerNaming.cs +++ b/Editor/Drawers/NamingAttributeDrawer.cs @@ -4,15 +4,15 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(Naming))] - internal sealed class DrawerNaming : DrawerPropertyDrawer + [CustomPropertyDrawer(typeof(NamingAttribute))] + internal sealed class NamingAttributeDrawer : DrawerPropertyDrawer { public override bool Draw(Rect position, DrawerPropertyAttribute attribute, SerializedProperty property, GUIContent label, EditorPropertyUtility.Result result) { if (property.propertyType != SerializedPropertyType.String) return false; - var att = (Naming)attribute; + var att = (NamingAttribute)attribute; EditorGUI.BeginProperty(position, label, property); { diff --git a/Editor/Drawers/DrawerNaming.cs.meta b/Editor/Drawers/NamingAttributeDrawer.cs.meta similarity index 100% rename from Editor/Drawers/DrawerNaming.cs.meta rename to Editor/Drawers/NamingAttributeDrawer.cs.meta diff --git a/Editor/Drawers/DrawerPercentage.cs b/Editor/Drawers/PercentageAttributeDrawer.cs similarity index 90% rename from Editor/Drawers/DrawerPercentage.cs rename to Editor/Drawers/PercentageAttributeDrawer.cs index b9121e4..55e4bb6 100644 --- a/Editor/Drawers/DrawerPercentage.cs +++ b/Editor/Drawers/PercentageAttributeDrawer.cs @@ -4,8 +4,8 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(Percentage))] - internal sealed class DrawerPercentage : DrawerPropertyDrawer + [CustomPropertyDrawer(typeof(PercentageAttribute))] + internal sealed class PercentageAttributeDrawer : DrawerPropertyDrawer { public override bool Draw(Rect position, DrawerPropertyAttribute attribute, SerializedProperty property, GUIContent label, EditorPropertyUtility.Result result) { diff --git a/Editor/Drawers/DrawerPercentage.cs.meta b/Editor/Drawers/PercentageAttributeDrawer.cs.meta similarity index 100% rename from Editor/Drawers/DrawerPercentage.cs.meta rename to Editor/Drawers/PercentageAttributeDrawer.cs.meta diff --git a/Editor/Drawers/DrawerPopupFromConst.cs b/Editor/Drawers/PopupFromConstAttributeDrawer.cs similarity index 89% rename from Editor/Drawers/DrawerPopupFromConst.cs rename to Editor/Drawers/PopupFromConstAttributeDrawer.cs index d282a25..da28a46 100644 --- a/Editor/Drawers/DrawerPopupFromConst.cs +++ b/Editor/Drawers/PopupFromConstAttributeDrawer.cs @@ -7,8 +7,8 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(PopupFromConst))] - internal sealed class DrawerPopupFromConst : DrawerPropertyDrawer + [CustomPropertyDrawer(typeof(PopupFromConstAttribute))] + internal sealed class PopupFromConstAttributeDrawer : DrawerPropertyDrawer { private GUIContent[] names; private string[] values; @@ -18,7 +18,7 @@ namespace Module.Inspector.Editor if (property.propertyType != SerializedPropertyType.String) return false; - var att = (PopupFromConst)attribute; + var att = (PopupFromConstAttribute)attribute; FetchConstArray(att); EditorGUI.BeginChangeCheck(); @@ -44,7 +44,7 @@ namespace Module.Inspector.Editor return "Only supports integers"; } - private void FetchConstArray(PopupFromConst attribute) + private void FetchConstArray(PopupFromConstAttribute attribute) { if (names != null) return; diff --git a/Editor/Drawers/DrawerPopupFromConst.cs.meta b/Editor/Drawers/PopupFromConstAttributeDrawer.cs.meta similarity index 100% rename from Editor/Drawers/DrawerPopupFromConst.cs.meta rename to Editor/Drawers/PopupFromConstAttributeDrawer.cs.meta diff --git a/Editor/Drawers/DrawerQuaternionToEuler.cs b/Editor/Drawers/QuaternionToEulerAttributeDrawer.cs similarity index 88% rename from Editor/Drawers/DrawerQuaternionToEuler.cs rename to Editor/Drawers/QuaternionToEulerAttributeDrawer.cs index 4067080..ec4e8c8 100644 --- a/Editor/Drawers/DrawerQuaternionToEuler.cs +++ b/Editor/Drawers/QuaternionToEulerAttributeDrawer.cs @@ -4,8 +4,8 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(QuaternionToEuler))] - internal sealed class DrawerQuaternionToEuler : DrawerPropertyDrawer + [CustomPropertyDrawer(typeof(QuaternionToEulerAttribute))] + internal sealed class QuaternionToEulerAttributeDrawer : DrawerPropertyDrawer { public override bool Draw(Rect position, DrawerPropertyAttribute attribute, SerializedProperty property, GUIContent label, EditorPropertyUtility.Result result) { diff --git a/Editor/Drawers/DrawerQuaternionToEuler.cs.meta b/Editor/Drawers/QuaternionToEulerAttributeDrawer.cs.meta similarity index 100% rename from Editor/Drawers/DrawerQuaternionToEuler.cs.meta rename to Editor/Drawers/QuaternionToEulerAttributeDrawer.cs.meta diff --git a/Editor/Drawers/DrawerSceneDropdown.cs b/Editor/Drawers/SceneDropdownAttributeDrawer.cs similarity index 94% rename from Editor/Drawers/DrawerSceneDropdown.cs rename to Editor/Drawers/SceneDropdownAttributeDrawer.cs index 7aab226..34f20ad 100644 --- a/Editor/Drawers/DrawerSceneDropdown.cs +++ b/Editor/Drawers/SceneDropdownAttributeDrawer.cs @@ -6,8 +6,8 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(SceneDropdown))] - internal sealed class DrawerSceneDropdown : DrawerPropertyDrawer + [CustomPropertyDrawer(typeof(SceneDropdownAttribute))] + internal sealed class SceneDropdownAttributeDrawer : DrawerPropertyDrawer { private static GUIContent[] NAMES; private static string[] PATHS; diff --git a/Editor/Drawers/DrawerSceneDropdown.cs.meta b/Editor/Drawers/SceneDropdownAttributeDrawer.cs.meta similarity index 100% rename from Editor/Drawers/DrawerSceneDropdown.cs.meta rename to Editor/Drawers/SceneDropdownAttributeDrawer.cs.meta diff --git a/Editor/Drawers/DrawerSlider.cs b/Editor/Drawers/SliderAttributeDrawer.cs similarity index 89% rename from Editor/Drawers/DrawerSlider.cs rename to Editor/Drawers/SliderAttributeDrawer.cs index 8f2c6e4..72cef75 100644 --- a/Editor/Drawers/DrawerSlider.cs +++ b/Editor/Drawers/SliderAttributeDrawer.cs @@ -4,13 +4,13 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(Slider))] - internal sealed class DrawerSlider : DrawerPropertyDrawer + [CustomPropertyDrawer(typeof(SliderAttribute))] + internal sealed class SliderAttributeDrawer : DrawerPropertyDrawer { public override bool Draw(Rect position, DrawerPropertyAttribute attribute, SerializedProperty property, GUIContent label, EditorPropertyUtility.Result result) { - var min = result.GetValueModifier(); - var max = result.GetValueModifier(); + var min = result.GetValueModifier(); + var max = result.GetValueModifier(); if (min == null || max == null) return false; @@ -46,7 +46,7 @@ namespace Module.Inspector.Editor return "Only supports integer, float, vector2 and vector2int"; } - private void DrawRange(Rect position, SerializedProperty property, GUIContent label, MinValue minValue, MaxValue maxValue) + private void DrawRange(Rect position, SerializedProperty property, GUIContent label, MinValueAttribute minValueAttribute, MaxValueAttribute maxValueAttribute) { int indentLevel = EditorGUI.indentLevel; float indentSpacing = indentLevel * 15.0f; @@ -63,10 +63,10 @@ namespace Module.Inspector.Editor switch (property.propertyType) { case SerializedPropertyType.Integer: - property.intValue = EditorGUI.IntSlider(r1, property.intValue, minValue.intValue, maxValue.intValue); + property.intValue = EditorGUI.IntSlider(r1, property.intValue, minValueAttribute.intValue, maxValueAttribute.intValue); break; case SerializedPropertyType.Float: - property.floatValue = EditorGUI.Slider(r1, property.floatValue, minValue.floatValue, maxValue.floatValue); + property.floatValue = EditorGUI.Slider(r1, property.floatValue, minValueAttribute.floatValue, maxValueAttribute.floatValue); break; } } @@ -74,7 +74,7 @@ namespace Module.Inspector.Editor EditorGUI.indentLevel = indentLevel; } - private void DrawerMinMax(Rect position, SerializedProperty property, GUIContent label, MinValue min, MaxValue max) + private void DrawerMinMax(Rect position, SerializedProperty property, GUIContent label, MinValueAttribute min, MaxValueAttribute max) { const float FLOAT_WIDTH = 50.0f; const float FLOAT_SPACING = 8.0f; diff --git a/Editor/Drawers/DrawerSlider.cs.meta b/Editor/Drawers/SliderAttributeDrawer.cs.meta similarity index 100% rename from Editor/Drawers/DrawerSlider.cs.meta rename to Editor/Drawers/SliderAttributeDrawer.cs.meta diff --git a/Editor/Drawers/DrawerStringToAnimatorParameter.cs b/Editor/Drawers/StringToAnimatorParameterAttributeDrawer.cs similarity index 88% rename from Editor/Drawers/DrawerStringToAnimatorParameter.cs rename to Editor/Drawers/StringToAnimatorParameterAttributeDrawer.cs index 7b405ec..2f4aba8 100644 --- a/Editor/Drawers/DrawerStringToAnimatorParameter.cs +++ b/Editor/Drawers/StringToAnimatorParameterAttributeDrawer.cs @@ -5,8 +5,8 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(StringToAnimatorParameter))] - internal sealed class DrawerStringToAnimatorParameter : DrawerPropertyDrawer + [CustomPropertyDrawer(typeof(StringToAnimatorParameterAttribute))] + internal sealed class StringToAnimatorParameterAttributeDrawer : DrawerPropertyDrawer { private readonly List names = new List(); private GUIContent[] contentArr; @@ -16,7 +16,7 @@ namespace Module.Inspector.Editor if (property.propertyType != SerializedPropertyType.String) return false; - var att = (StringToAnimatorParameter)attribute; + var att = (StringToAnimatorParameterAttribute)attribute; SerializedProperty spSibling = property.GetSibling(att.animatorFieldName); if (spSibling == null) @@ -49,7 +49,7 @@ namespace Module.Inspector.Editor if (property.propertyType != SerializedPropertyType.String) return "Only supports strings"; - var att = (StringToAnimatorParameter)attribute; + var att = (StringToAnimatorParameterAttribute)attribute; return $"Missing field: {att.animatorFieldName}"; } diff --git a/Editor/Drawers/DrawerStringToAnimatorParameter.cs.meta b/Editor/Drawers/StringToAnimatorParameterAttributeDrawer.cs.meta similarity index 100% rename from Editor/Drawers/DrawerStringToAnimatorParameter.cs.meta rename to Editor/Drawers/StringToAnimatorParameterAttributeDrawer.cs.meta diff --git a/Editor/Drawers/DrawerStringToField.cs b/Editor/Drawers/StringToFieldAttributeDrawer.cs similarity index 86% rename from Editor/Drawers/DrawerStringToField.cs rename to Editor/Drawers/StringToFieldAttributeDrawer.cs index af8a896..b673a97 100644 --- a/Editor/Drawers/DrawerStringToField.cs +++ b/Editor/Drawers/StringToFieldAttributeDrawer.cs @@ -4,15 +4,15 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(StringToField))] - internal sealed class DrawerStringToField : DrawerPropertyDrawer + [CustomPropertyDrawer(typeof(StringToFieldAttribute))] + internal sealed class StringToFieldAttributeDrawer : DrawerPropertyDrawer { public override bool Draw(Rect position, DrawerPropertyAttribute attribute, SerializedProperty property, GUIContent label, EditorPropertyUtility.Result result) { if (property.propertyType != SerializedPropertyType.String) return false; - var att = (StringToField)attribute; + var att = (StringToFieldAttribute)attribute; EditorGUI.BeginProperty(position, label, property); { diff --git a/Editor/Drawers/DrawerStringToField.cs.meta b/Editor/Drawers/StringToFieldAttributeDrawer.cs.meta similarity index 100% rename from Editor/Drawers/DrawerStringToField.cs.meta rename to Editor/Drawers/StringToFieldAttributeDrawer.cs.meta diff --git a/Editor/Drawers/DrawerStringToType.cs b/Editor/Drawers/StringToTypeAttributeDrawer.cs similarity index 86% rename from Editor/Drawers/DrawerStringToType.cs rename to Editor/Drawers/StringToTypeAttributeDrawer.cs index 259384f..314b4c6 100644 --- a/Editor/Drawers/DrawerStringToType.cs +++ b/Editor/Drawers/StringToTypeAttributeDrawer.cs @@ -4,15 +4,15 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(StringToType))] - internal sealed class DrawerStringToType : DrawerPropertyDrawer + [CustomPropertyDrawer(typeof(StringToTypeAttribute))] + internal sealed class StringToTypeAttributeDrawer : DrawerPropertyDrawer { public override bool Draw(Rect position, DrawerPropertyAttribute attribute, SerializedProperty property, GUIContent label, EditorPropertyUtility.Result result) { if (property.propertyType != SerializedPropertyType.String) return false; - var att = (StringToType)attribute; + var att = (StringToTypeAttribute)attribute; EditorGUI.BeginProperty(position, label, property); { diff --git a/Editor/Drawers/DrawerStringToType.cs.meta b/Editor/Drawers/StringToTypeAttributeDrawer.cs.meta similarity index 100% rename from Editor/Drawers/DrawerStringToType.cs.meta rename to Editor/Drawers/StringToTypeAttributeDrawer.cs.meta diff --git a/Editor/Drawers/DrawerTag.cs b/Editor/Drawers/TagAttributeDrawer.cs similarity index 93% rename from Editor/Drawers/DrawerTag.cs rename to Editor/Drawers/TagAttributeDrawer.cs index c9d374f..6a0d271 100644 --- a/Editor/Drawers/DrawerTag.cs +++ b/Editor/Drawers/TagAttributeDrawer.cs @@ -5,8 +5,8 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(Tag))] - internal sealed class DrawerTag : DrawerPropertyDrawer + [CustomPropertyDrawer(typeof(TagAttribute))] + internal sealed class TagAttributeDrawer : DrawerPropertyDrawer { private string[] names; private GUIContent[] contentArr; diff --git a/Editor/Drawers/DrawerTag.cs.meta b/Editor/Drawers/TagAttributeDrawer.cs.meta similarity index 100% rename from Editor/Drawers/DrawerTag.cs.meta rename to Editor/Drawers/TagAttributeDrawer.cs.meta diff --git a/Editor/Drawers/DrawerUrlGoTo.cs b/Editor/Drawers/UrlGoToAttributeDrawer.cs similarity index 90% rename from Editor/Drawers/DrawerUrlGoTo.cs rename to Editor/Drawers/UrlGoToAttributeDrawer.cs index c9fc856..da17ac1 100644 --- a/Editor/Drawers/DrawerUrlGoTo.cs +++ b/Editor/Drawers/UrlGoToAttributeDrawer.cs @@ -4,8 +4,8 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(UrlGoTo))] - internal sealed class DrawerUrlGoTo : DrawerPropertyDrawer + [CustomPropertyDrawer(typeof(UrlGoToAttribute))] + internal sealed class UrlGoToAttributeDrawer : DrawerPropertyDrawer { public override bool Draw(Rect position, DrawerPropertyAttribute attribute, SerializedProperty property, GUIContent label, EditorPropertyUtility.Result result) { diff --git a/Editor/Drawers/DrawerUrlGoTo.cs.meta b/Editor/Drawers/UrlGoToAttributeDrawer.cs.meta similarity index 100% rename from Editor/Drawers/DrawerUrlGoTo.cs.meta rename to Editor/Drawers/UrlGoToAttributeDrawer.cs.meta diff --git a/Editor/Utilities/EditorNamingUtility.cs b/Editor/Utilities/EditorNamingUtility.cs index cfdf66e..66a10bb 100644 --- a/Editor/Utilities/EditorNamingUtility.cs +++ b/Editor/Utilities/EditorNamingUtility.cs @@ -6,21 +6,21 @@ namespace Module.Inspector.Editor.Utilities { public static class EditorNamingUtility { - public static string ConvertTo(Naming.EPatternType type, string str) + public static string ConvertTo(NamingAttribute.EPatternType type, string str) { switch (type) { - case Naming.EPatternType.CamelCasing: + case NamingAttribute.EPatternType.CamelCasing: return ToCamel(str); - case Naming.EPatternType.PascalCasing: + case NamingAttribute.EPatternType.PascalCasing: return ToPascal(str); - case Naming.EPatternType.SnakeCasing: + case NamingAttribute.EPatternType.SnakeCasing: return ToSnake(str); - case Naming.EPatternType.SnakeCasingAllCaps: + case NamingAttribute.EPatternType.SnakeCasingAllCaps: return ToSnake(str).ToUpper(); - case Naming.EPatternType.KebabCasing: + case NamingAttribute.EPatternType.KebabCasing: return ToKebab(str); - case Naming.EPatternType.KebabCasingAllCaps: + case NamingAttribute.EPatternType.KebabCasingAllCaps: return ToKebab(str).ToUpper(); default: return str; diff --git a/Editor/ValueModifiers/DrawerArrayIndex.cs b/Editor/ValueModifiers/ArrayIndexAttributeDrawer.cs similarity index 76% rename from Editor/ValueModifiers/DrawerArrayIndex.cs rename to Editor/ValueModifiers/ArrayIndexAttributeDrawer.cs index b1653f4..b7fbda3 100644 --- a/Editor/ValueModifiers/DrawerArrayIndex.cs +++ b/Editor/ValueModifiers/ArrayIndexAttributeDrawer.cs @@ -3,12 +3,12 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(ArrayIndex))] - internal sealed class DrawerArrayIndex : ValueModifierPropertyDrawer + [CustomPropertyDrawer(typeof(ArrayIndexAttribute))] + internal sealed class ArrayIndexAttributeDrawer : ValueModifierPropertyDrawer { public override void Modify(ValueModifierPropertyAttribute attribute, SerializedProperty property) { - var att = (ArrayIndex)attribute; + var att = (ArrayIndexAttribute)attribute; int arraySize = GetSiblingArraySize(property, att); int max = arraySize > 0 ? arraySize - 1 : 0; @@ -18,7 +18,7 @@ namespace Module.Inspector.Editor property.intValue = value; } - private static int GetSiblingArraySize(SerializedProperty sp, ArrayIndex att) + private static int GetSiblingArraySize(SerializedProperty sp, ArrayIndexAttribute att) { SerializedProperty spSibling = sp.GetSibling(att.fieldName); return spSibling != null && spSibling.isArray ? spSibling.arraySize : 0; diff --git a/Editor/ValueModifiers/DrawerArrayIndex.cs.meta b/Editor/ValueModifiers/ArrayIndexAttributeDrawer.cs.meta similarity index 100% rename from Editor/ValueModifiers/DrawerArrayIndex.cs.meta rename to Editor/ValueModifiers/ArrayIndexAttributeDrawer.cs.meta diff --git a/Editor/ValueModifiers/DrawerLargerThanField.cs b/Editor/ValueModifiers/LargerThanFieldAttributeDrawer.cs similarity index 69% rename from Editor/ValueModifiers/DrawerLargerThanField.cs rename to Editor/ValueModifiers/LargerThanFieldAttributeDrawer.cs index 9022960..f87dfc2 100644 --- a/Editor/ValueModifiers/DrawerLargerThanField.cs +++ b/Editor/ValueModifiers/LargerThanFieldAttributeDrawer.cs @@ -2,12 +2,12 @@ namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(LargerThanField))] - internal sealed class DrawerLargerThanField : ValueModifierPropertyDrawer + [CustomPropertyDrawer(typeof(LargerThanFieldAttribute))] + internal sealed class LargerThanFieldAttributeDrawer : ValueModifierPropertyDrawer { public override void Modify(ValueModifierPropertyAttribute attribute, SerializedProperty property) { - var att = (LargerThanField)attribute; + var att = (LargerThanFieldAttribute)attribute; SerializedPropertyExtension.ECompareType compareType = property.IsGreaterOrEqualToSiblingValue(att.fieldName); if (compareType == SerializedPropertyExtension.ECompareType.False) diff --git a/Editor/ValueModifiers/DrawerLargerThanField.cs.meta b/Editor/ValueModifiers/LargerThanFieldAttributeDrawer.cs.meta similarity index 100% rename from Editor/ValueModifiers/DrawerLargerThanField.cs.meta rename to Editor/ValueModifiers/LargerThanFieldAttributeDrawer.cs.meta diff --git a/Editor/ValueModifiers/DrawerMaxValue.cs b/Editor/ValueModifiers/MaxValueAttributeDrawer.cs similarity index 93% rename from Editor/ValueModifiers/DrawerMaxValue.cs rename to Editor/ValueModifiers/MaxValueAttributeDrawer.cs index 57c5257..7761992 100644 --- a/Editor/ValueModifiers/DrawerMaxValue.cs +++ b/Editor/ValueModifiers/MaxValueAttributeDrawer.cs @@ -3,12 +3,12 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(MaxValue))] - internal sealed class DrawerMaxValue : ValueModifierPropertyDrawer + [CustomPropertyDrawer(typeof(MaxValueAttribute))] + internal sealed class MaxValueAttributeDrawer : ValueModifierPropertyDrawer { public override void Modify(ValueModifierPropertyAttribute attribute, SerializedProperty property) { - var max = (MaxValue)attribute; + var max = (MaxValueAttribute)attribute; switch (property.propertyType) { diff --git a/Editor/ValueModifiers/DrawerMaxValue.cs.meta b/Editor/ValueModifiers/MaxValueAttributeDrawer.cs.meta similarity index 100% rename from Editor/ValueModifiers/DrawerMaxValue.cs.meta rename to Editor/ValueModifiers/MaxValueAttributeDrawer.cs.meta diff --git a/Editor/ValueModifiers/DrawerMinValue.cs b/Editor/ValueModifiers/MinValueAttributeDrawer.cs similarity index 93% rename from Editor/ValueModifiers/DrawerMinValue.cs rename to Editor/ValueModifiers/MinValueAttributeDrawer.cs index effda92..7fffab7 100644 --- a/Editor/ValueModifiers/DrawerMinValue.cs +++ b/Editor/ValueModifiers/MinValueAttributeDrawer.cs @@ -3,12 +3,12 @@ using UnityEngine; namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(MinValue))] - internal sealed class DrawerMinValue : ValueModifierPropertyDrawer + [CustomPropertyDrawer(typeof(MinValueAttribute))] + internal sealed class MinValueAttributeDrawer : ValueModifierPropertyDrawer { public override void Modify(ValueModifierPropertyAttribute attribute, SerializedProperty property) { - var min = (MinValue)attribute; + var min = (MinValueAttribute)attribute; switch (property.propertyType) { diff --git a/Editor/ValueModifiers/DrawerMinValue.cs.meta b/Editor/ValueModifiers/MinValueAttributeDrawer.cs.meta similarity index 100% rename from Editor/ValueModifiers/DrawerMinValue.cs.meta rename to Editor/ValueModifiers/MinValueAttributeDrawer.cs.meta diff --git a/Editor/ValueModifiers/DrawerSmallerThanField.cs b/Editor/ValueModifiers/SmallerThanFieldAttributeDrawer.cs similarity index 69% rename from Editor/ValueModifiers/DrawerSmallerThanField.cs rename to Editor/ValueModifiers/SmallerThanFieldAttributeDrawer.cs index a388f57..10e7068 100644 --- a/Editor/ValueModifiers/DrawerSmallerThanField.cs +++ b/Editor/ValueModifiers/SmallerThanFieldAttributeDrawer.cs @@ -2,12 +2,12 @@ namespace Module.Inspector.Editor { - [CustomPropertyDrawer(typeof(SmallerThanField))] - internal sealed class DrawerSmallerThanField : ValueModifierPropertyDrawer + [CustomPropertyDrawer(typeof(SmallerThanFieldAttribute))] + internal sealed class SmallerThanFieldAttributeDrawer : ValueModifierPropertyDrawer { public override void Modify(ValueModifierPropertyAttribute attribute, SerializedProperty property) { - var att = (SmallerThanField)attribute; + var att = (SmallerThanFieldAttribute)attribute; SerializedPropertyExtension.ECompareType compareType = property.IsSmallerOrEqualToSiblingValue(att.fieldName); if (compareType == SerializedPropertyExtension.ECompareType.False) diff --git a/Editor/ValueModifiers/DrawerSmallerThanField.cs.meta b/Editor/ValueModifiers/SmallerThanFieldAttributeDrawer.cs.meta similarity index 100% rename from Editor/ValueModifiers/DrawerSmallerThanField.cs.meta rename to Editor/ValueModifiers/SmallerThanFieldAttributeDrawer.cs.meta diff --git a/Runtime/AccessModifiers/DisableAttribute.cs b/Runtime/AccessModifiers/DisableAttribute.cs new file mode 100644 index 0000000..25f4a19 --- /dev/null +++ b/Runtime/AccessModifiers/DisableAttribute.cs @@ -0,0 +1,14 @@ +using System; +using UnityEngine.Scripting; + +namespace Module.Inspector +{ + [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] + public sealed class DisableAttribute : AccessModifierPropertyAttribute + { + [Preserve] + public DisableAttribute() + { + } + } +} \ No newline at end of file diff --git a/Runtime/AccessModifiers/Disable.cs.meta b/Runtime/AccessModifiers/DisableAttribute.cs.meta similarity index 100% rename from Runtime/AccessModifiers/Disable.cs.meta rename to Runtime/AccessModifiers/DisableAttribute.cs.meta diff --git a/Runtime/AccessModifiers/ShowField.cs b/Runtime/AccessModifiers/DisableFieldAttribute.cs similarity index 69% rename from Runtime/AccessModifiers/ShowField.cs rename to Runtime/AccessModifiers/DisableFieldAttribute.cs index 24ce26f..d789500 100644 --- a/Runtime/AccessModifiers/ShowField.cs +++ b/Runtime/AccessModifiers/DisableFieldAttribute.cs @@ -3,18 +3,18 @@ namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class ShowField : AccessModifierPropertyAttribute + public sealed class DisableFieldAttribute : AccessModifierPropertyAttribute { public readonly string fieldName; public readonly bool useFieldValue; public readonly object fieldValue; - public ShowField(string fieldName) + public DisableFieldAttribute(string fieldName) { this.fieldName = fieldName; } - public ShowField(string fieldName, object fieldValue) + public DisableFieldAttribute(string fieldName, object fieldValue) { this.fieldName = fieldName; this.fieldValue = fieldValue; diff --git a/Runtime/AccessModifiers/DisableField.cs.meta b/Runtime/AccessModifiers/DisableFieldAttribute.cs.meta similarity index 100% rename from Runtime/AccessModifiers/DisableField.cs.meta rename to Runtime/AccessModifiers/DisableFieldAttribute.cs.meta diff --git a/Runtime/AccessModifiers/DisableFieldInPlayModeAttribute.cs b/Runtime/AccessModifiers/DisableFieldInPlayModeAttribute.cs new file mode 100644 index 0000000..8b8fd4e --- /dev/null +++ b/Runtime/AccessModifiers/DisableFieldInPlayModeAttribute.cs @@ -0,0 +1,14 @@ +using System; +using UnityEngine.Scripting; + +namespace Module.Inspector +{ + [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] + public sealed class DisableFieldInPlayModeAttribute : AccessModifierPropertyAttribute + { + [Preserve] + public DisableFieldInPlayModeAttribute() + { + } + } +} \ No newline at end of file diff --git a/Runtime/AccessModifiers/DisableFieldInPlayMode.cs.meta b/Runtime/AccessModifiers/DisableFieldInPlayModeAttribute.cs.meta similarity index 100% rename from Runtime/AccessModifiers/DisableFieldInPlayMode.cs.meta rename to Runtime/AccessModifiers/DisableFieldInPlayModeAttribute.cs.meta diff --git a/Runtime/AccessModifiers/EnableMethod.cs b/Runtime/AccessModifiers/DisableMethodAttribute.cs similarity index 69% rename from Runtime/AccessModifiers/EnableMethod.cs rename to Runtime/AccessModifiers/DisableMethodAttribute.cs index b034c25..6f0e133 100644 --- a/Runtime/AccessModifiers/EnableMethod.cs +++ b/Runtime/AccessModifiers/DisableMethodAttribute.cs @@ -3,18 +3,18 @@ namespace Module.Inspector { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] - public sealed class EnableMethod : AccessModifierMethodAttribute + public sealed class DisableMethodAttribute : AccessModifierMethodAttribute { public readonly string fieldName; public readonly bool useFieldValue; public readonly object fieldValue; - public EnableMethod(string fieldName) + public DisableMethodAttribute(string fieldName) { this.fieldName = fieldName; } - public EnableMethod(string fieldName, object fieldValue) + public DisableMethodAttribute(string fieldName, object fieldValue) { this.fieldName = fieldName; this.fieldValue = fieldValue; diff --git a/Runtime/AccessModifiers/DisableMethod.cs.meta b/Runtime/AccessModifiers/DisableMethodAttribute.cs.meta similarity index 100% rename from Runtime/AccessModifiers/DisableMethod.cs.meta rename to Runtime/AccessModifiers/DisableMethodAttribute.cs.meta diff --git a/Runtime/AccessModifiers/EnableFieldInPlayMode.cs b/Runtime/AccessModifiers/DisableMethodInPlayModeAttribute.cs similarity index 60% rename from Runtime/AccessModifiers/EnableFieldInPlayMode.cs rename to Runtime/AccessModifiers/DisableMethodInPlayModeAttribute.cs index ca7c0a6..d6a6ced 100644 --- a/Runtime/AccessModifiers/EnableFieldInPlayMode.cs +++ b/Runtime/AccessModifiers/DisableMethodInPlayModeAttribute.cs @@ -4,10 +4,10 @@ using UnityEngine.Scripting; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] - public sealed class EnableFieldInPlayMode : AccessModifierPropertyAttribute + public sealed class DisableMethodInPlayModeAttribute : AccessModifierMethodAttribute { [Preserve] - public EnableFieldInPlayMode() + public DisableMethodInPlayModeAttribute() { } } diff --git a/Runtime/AccessModifiers/DisableMethodInPlayMode.cs.meta b/Runtime/AccessModifiers/DisableMethodInPlayModeAttribute.cs.meta similarity index 100% rename from Runtime/AccessModifiers/DisableMethodInPlayMode.cs.meta rename to Runtime/AccessModifiers/DisableMethodInPlayModeAttribute.cs.meta diff --git a/Runtime/AccessModifiers/EnableField.cs b/Runtime/AccessModifiers/EnableFieldAttribute.cs similarity index 69% rename from Runtime/AccessModifiers/EnableField.cs rename to Runtime/AccessModifiers/EnableFieldAttribute.cs index fce2b62..8f4d3ec 100644 --- a/Runtime/AccessModifiers/EnableField.cs +++ b/Runtime/AccessModifiers/EnableFieldAttribute.cs @@ -3,18 +3,18 @@ namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class EnableField : AccessModifierPropertyAttribute + public sealed class EnableFieldAttribute : AccessModifierPropertyAttribute { public readonly string fieldName; public readonly bool useFieldValue; public readonly object fieldValue; - public EnableField(string fieldName) + public EnableFieldAttribute(string fieldName) { this.fieldName = fieldName; } - public EnableField(string fieldName, object fieldValue) + public EnableFieldAttribute(string fieldName, object fieldValue) { this.fieldName = fieldName; this.fieldValue = fieldValue; diff --git a/Runtime/AccessModifiers/EnableField.cs.meta b/Runtime/AccessModifiers/EnableFieldAttribute.cs.meta similarity index 100% rename from Runtime/AccessModifiers/EnableField.cs.meta rename to Runtime/AccessModifiers/EnableFieldAttribute.cs.meta diff --git a/Runtime/AccessModifiers/EnableMethodInPlayMode.cs b/Runtime/AccessModifiers/EnableFieldInPlayModeAttribute.cs similarity index 60% rename from Runtime/AccessModifiers/EnableMethodInPlayMode.cs rename to Runtime/AccessModifiers/EnableFieldInPlayModeAttribute.cs index ed1536a..63fbfb8 100644 --- a/Runtime/AccessModifiers/EnableMethodInPlayMode.cs +++ b/Runtime/AccessModifiers/EnableFieldInPlayModeAttribute.cs @@ -4,10 +4,10 @@ using UnityEngine.Scripting; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] - public sealed class EnableMethodInPlayMode : AccessModifierMethodAttribute + public sealed class EnableFieldInPlayModeAttribute : AccessModifierPropertyAttribute { [Preserve] - public EnableMethodInPlayMode() + public EnableFieldInPlayModeAttribute() { } } diff --git a/Runtime/AccessModifiers/EnableFieldInPlayMode.cs.meta b/Runtime/AccessModifiers/EnableFieldInPlayModeAttribute.cs.meta similarity index 100% rename from Runtime/AccessModifiers/EnableFieldInPlayMode.cs.meta rename to Runtime/AccessModifiers/EnableFieldInPlayModeAttribute.cs.meta diff --git a/Runtime/AccessModifiers/ShowMethod.cs b/Runtime/AccessModifiers/EnableMethodAttribute.cs similarity index 69% rename from Runtime/AccessModifiers/ShowMethod.cs rename to Runtime/AccessModifiers/EnableMethodAttribute.cs index 5e9e433..f71ca4c 100644 --- a/Runtime/AccessModifiers/ShowMethod.cs +++ b/Runtime/AccessModifiers/EnableMethodAttribute.cs @@ -3,18 +3,18 @@ namespace Module.Inspector { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] - public sealed class ShowMethod : AccessModifierMethodAttribute + public sealed class EnableMethodAttribute : AccessModifierMethodAttribute { public readonly string fieldName; public readonly bool useFieldValue; public readonly object fieldValue; - public ShowMethod(string fieldName) + public EnableMethodAttribute(string fieldName) { this.fieldName = fieldName; } - public ShowMethod(string fieldName, object fieldValue) + public EnableMethodAttribute(string fieldName, object fieldValue) { this.fieldName = fieldName; this.fieldValue = fieldValue; diff --git a/Runtime/AccessModifiers/EnableMethod.cs.meta b/Runtime/AccessModifiers/EnableMethodAttribute.cs.meta similarity index 100% rename from Runtime/AccessModifiers/EnableMethod.cs.meta rename to Runtime/AccessModifiers/EnableMethodAttribute.cs.meta diff --git a/Runtime/AccessModifiers/DisableMethodInPlayMode.cs b/Runtime/AccessModifiers/EnableMethodInPlayModeAttribute.cs similarity index 60% rename from Runtime/AccessModifiers/DisableMethodInPlayMode.cs rename to Runtime/AccessModifiers/EnableMethodInPlayModeAttribute.cs index 160e240..025a669 100644 --- a/Runtime/AccessModifiers/DisableMethodInPlayMode.cs +++ b/Runtime/AccessModifiers/EnableMethodInPlayModeAttribute.cs @@ -4,10 +4,10 @@ using UnityEngine.Scripting; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] - public sealed class DisableMethodInPlayMode : AccessModifierMethodAttribute + public sealed class EnableMethodInPlayModeAttribute : AccessModifierMethodAttribute { [Preserve] - public DisableMethodInPlayMode() + public EnableMethodInPlayModeAttribute() { } } diff --git a/Runtime/AccessModifiers/EnableMethodInPlayMode.cs.meta b/Runtime/AccessModifiers/EnableMethodInPlayModeAttribute.cs.meta similarity index 100% rename from Runtime/AccessModifiers/EnableMethodInPlayMode.cs.meta rename to Runtime/AccessModifiers/EnableMethodInPlayModeAttribute.cs.meta diff --git a/Runtime/AccessModifiers/HideField.cs b/Runtime/AccessModifiers/HideFieldAttribute.cs similarity index 69% rename from Runtime/AccessModifiers/HideField.cs rename to Runtime/AccessModifiers/HideFieldAttribute.cs index 9db3294..83ded84 100644 --- a/Runtime/AccessModifiers/HideField.cs +++ b/Runtime/AccessModifiers/HideFieldAttribute.cs @@ -4,23 +4,23 @@ using UnityEngine.Scripting; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class HideField : AccessModifierPropertyAttribute + public sealed class HideFieldAttribute : AccessModifierPropertyAttribute { public readonly string fieldName; public readonly bool useFieldValue; public readonly object fieldValue; [Preserve] - public HideField() + public HideFieldAttribute() { } - public HideField(string fieldName) + public HideFieldAttribute(string fieldName) { this.fieldName = fieldName; } - public HideField(string fieldName, object fieldValue) + public HideFieldAttribute(string fieldName, object fieldValue) { this.fieldName = fieldName; this.fieldValue = fieldValue; diff --git a/Runtime/AccessModifiers/HideField.cs.meta b/Runtime/AccessModifiers/HideFieldAttribute.cs.meta similarity index 100% rename from Runtime/AccessModifiers/HideField.cs.meta rename to Runtime/AccessModifiers/HideFieldAttribute.cs.meta diff --git a/Runtime/AccessModifiers/HideInNormalInspector.cs b/Runtime/AccessModifiers/HideInNormalInspectorAttribute.cs similarity index 60% rename from Runtime/AccessModifiers/HideInNormalInspector.cs rename to Runtime/AccessModifiers/HideInNormalInspectorAttribute.cs index 98635fe..c61d9c4 100644 --- a/Runtime/AccessModifiers/HideInNormalInspector.cs +++ b/Runtime/AccessModifiers/HideInNormalInspectorAttribute.cs @@ -4,10 +4,10 @@ using UnityEngine.Scripting; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = true, Inherited = true)] - public sealed class HideInNormalInspector : AccessModifierPropertyAttribute + public sealed class HideInNormalInspectorAttribute : AccessModifierPropertyAttribute { [Preserve] - public HideInNormalInspector() + public HideInNormalInspectorAttribute() { } } diff --git a/Runtime/AccessModifiers/HideInNormalInspector.cs.meta b/Runtime/AccessModifiers/HideInNormalInspectorAttribute.cs.meta similarity index 100% rename from Runtime/AccessModifiers/HideInNormalInspector.cs.meta rename to Runtime/AccessModifiers/HideInNormalInspectorAttribute.cs.meta diff --git a/Runtime/AccessModifiers/HideMethod.cs b/Runtime/AccessModifiers/HideMethodAttribute.cs similarity index 69% rename from Runtime/AccessModifiers/HideMethod.cs rename to Runtime/AccessModifiers/HideMethodAttribute.cs index 3af86f1..d9eb76e 100644 --- a/Runtime/AccessModifiers/HideMethod.cs +++ b/Runtime/AccessModifiers/HideMethodAttribute.cs @@ -4,23 +4,23 @@ using UnityEngine.Scripting; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] - public sealed class HideMethod : AccessModifierMethodAttribute + public sealed class HideMethodAttribute : AccessModifierMethodAttribute { public readonly string fieldName; public readonly bool useFieldValue; public readonly object fieldValue; [Preserve] - public HideMethod() + public HideMethodAttribute() { } - public HideMethod(string fieldName) + public HideMethodAttribute(string fieldName) { this.fieldName = fieldName; } - public HideMethod(string fieldName, object fieldValue) + public HideMethodAttribute(string fieldName, object fieldValue) { this.fieldName = fieldName; this.fieldValue = fieldValue; diff --git a/Runtime/AccessModifiers/HideMethod.cs.meta b/Runtime/AccessModifiers/HideMethodAttribute.cs.meta similarity index 100% rename from Runtime/AccessModifiers/HideMethod.cs.meta rename to Runtime/AccessModifiers/HideMethodAttribute.cs.meta diff --git a/Runtime/AccessModifiers/DisableField.cs b/Runtime/AccessModifiers/ShowFieldAttribute.cs similarity index 70% rename from Runtime/AccessModifiers/DisableField.cs rename to Runtime/AccessModifiers/ShowFieldAttribute.cs index 67d6daf..ce3fe61 100644 --- a/Runtime/AccessModifiers/DisableField.cs +++ b/Runtime/AccessModifiers/ShowFieldAttribute.cs @@ -3,18 +3,18 @@ namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class DisableField : AccessModifierPropertyAttribute + public sealed class ShowFieldAttribute : AccessModifierPropertyAttribute { public readonly string fieldName; public readonly bool useFieldValue; public readonly object fieldValue; - public DisableField(string fieldName) + public ShowFieldAttribute(string fieldName) { this.fieldName = fieldName; } - public DisableField(string fieldName, object fieldValue) + public ShowFieldAttribute(string fieldName, object fieldValue) { this.fieldName = fieldName; this.fieldValue = fieldValue; diff --git a/Runtime/AccessModifiers/ShowField.cs.meta b/Runtime/AccessModifiers/ShowFieldAttribute.cs.meta similarity index 100% rename from Runtime/AccessModifiers/ShowField.cs.meta rename to Runtime/AccessModifiers/ShowFieldAttribute.cs.meta diff --git a/Runtime/AccessModifiers/DisableMethod.cs b/Runtime/AccessModifiers/ShowMethodAttribute.cs similarity index 70% rename from Runtime/AccessModifiers/DisableMethod.cs rename to Runtime/AccessModifiers/ShowMethodAttribute.cs index 2ab77cd..4fa290b 100644 --- a/Runtime/AccessModifiers/DisableMethod.cs +++ b/Runtime/AccessModifiers/ShowMethodAttribute.cs @@ -3,18 +3,18 @@ namespace Module.Inspector { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] - public sealed class DisableMethod : AccessModifierMethodAttribute + public sealed class ShowMethodAttribute : AccessModifierMethodAttribute { public readonly string fieldName; public readonly bool useFieldValue; public readonly object fieldValue; - public DisableMethod(string fieldName) + public ShowMethodAttribute(string fieldName) { this.fieldName = fieldName; } - public DisableMethod(string fieldName, object fieldValue) + public ShowMethodAttribute(string fieldName, object fieldValue) { this.fieldName = fieldName; this.fieldValue = fieldValue; diff --git a/Runtime/AccessModifiers/ShowMethod.cs.meta b/Runtime/AccessModifiers/ShowMethodAttribute.cs.meta similarity index 100% rename from Runtime/AccessModifiers/ShowMethod.cs.meta rename to Runtime/AccessModifiers/ShowMethodAttribute.cs.meta diff --git a/Runtime/Decorators/HorizontalLine.cs b/Runtime/Decorators/HorizontalLineAttribute.cs similarity index 66% rename from Runtime/Decorators/HorizontalLine.cs rename to Runtime/Decorators/HorizontalLineAttribute.cs index b043f05..53423b0 100644 --- a/Runtime/Decorators/HorizontalLine.cs +++ b/Runtime/Decorators/HorizontalLineAttribute.cs @@ -5,16 +5,16 @@ using UnityEngine.Scripting; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class HorizontalLine : PropertyAttribute + public sealed class HorizontalLineAttribute : PropertyAttribute { public readonly string title; [Preserve] - public HorizontalLine() + public HorizontalLineAttribute() { } - public HorizontalLine(string title) + public HorizontalLineAttribute(string title) { this.title = title; } diff --git a/Runtime/Decorators/HorizontalLine.cs.meta b/Runtime/Decorators/HorizontalLineAttribute.cs.meta similarity index 100% rename from Runtime/Decorators/HorizontalLine.cs.meta rename to Runtime/Decorators/HorizontalLineAttribute.cs.meta diff --git a/Runtime/Decorators/MethodHeader.cs b/Runtime/Decorators/MethodHeaderAttribute.cs similarity index 65% rename from Runtime/Decorators/MethodHeader.cs rename to Runtime/Decorators/MethodHeaderAttribute.cs index 8e22c74..6a36b87 100644 --- a/Runtime/Decorators/MethodHeader.cs +++ b/Runtime/Decorators/MethodHeaderAttribute.cs @@ -4,16 +4,16 @@ using UnityEngine.Scripting; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] - public sealed class MethodHeader : DecoratorMethodAttribute + public sealed class MethodHeaderAttribute : DecoratorMethodAttribute { public readonly string title; [Preserve] - public MethodHeader() + public MethodHeaderAttribute() { } - public MethodHeader(string title) + public MethodHeaderAttribute(string title) { this.title = title; } diff --git a/Runtime/Decorators/MethodHeader.cs.meta b/Runtime/Decorators/MethodHeaderAttribute.cs.meta similarity index 100% rename from Runtime/Decorators/MethodHeader.cs.meta rename to Runtime/Decorators/MethodHeaderAttribute.cs.meta diff --git a/Runtime/Drawers/QuaternionToEuler.cs b/Runtime/Drawers/EnumFlagAttribute.cs similarity index 68% rename from Runtime/Drawers/QuaternionToEuler.cs rename to Runtime/Drawers/EnumFlagAttribute.cs index 9782457..9d1596f 100644 --- a/Runtime/Drawers/QuaternionToEuler.cs +++ b/Runtime/Drawers/EnumFlagAttribute.cs @@ -4,10 +4,10 @@ using UnityEngine.Scripting; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class QuaternionToEuler : DrawerPropertyAttribute + public sealed class EnumFlagAttribute : DrawerPropertyAttribute { [Preserve] - public QuaternionToEuler() + public EnumFlagAttribute() { } } diff --git a/Runtime/Drawers/EnumFlag.cs.meta b/Runtime/Drawers/EnumFlagAttribute.cs.meta similarity index 100% rename from Runtime/Drawers/EnumFlag.cs.meta rename to Runtime/Drawers/EnumFlagAttribute.cs.meta diff --git a/Runtime/Drawers/FilePath.cs b/Runtime/Drawers/FilePathAttribute.cs similarity index 66% rename from Runtime/Drawers/FilePath.cs rename to Runtime/Drawers/FilePathAttribute.cs index 49625fe..ee61dc5 100644 --- a/Runtime/Drawers/FilePath.cs +++ b/Runtime/Drawers/FilePathAttribute.cs @@ -3,17 +3,17 @@ namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class FilePath : DrawerPropertyAttribute + public sealed class FilePathAttribute : DrawerPropertyAttribute { public readonly bool useAbsolute; public readonly string extension = "*"; - public FilePath(bool useAbsolute = false) + public FilePathAttribute(bool useAbsolute = false) { this.useAbsolute = useAbsolute; } - public FilePath(string extension, bool useAbsolute = false) + public FilePathAttribute(string extension, bool useAbsolute = false) { this.extension = extension; this.useAbsolute = useAbsolute; diff --git a/Runtime/Drawers/FilePath.cs.meta b/Runtime/Drawers/FilePathAttribute.cs.meta similarity index 100% rename from Runtime/Drawers/FilePath.cs.meta rename to Runtime/Drawers/FilePathAttribute.cs.meta diff --git a/Runtime/Drawers/FolderPath.cs b/Runtime/Drawers/FolderPathAttribute.cs similarity index 65% rename from Runtime/Drawers/FolderPath.cs rename to Runtime/Drawers/FolderPathAttribute.cs index 9f5bb41..2c6bb64 100644 --- a/Runtime/Drawers/FolderPath.cs +++ b/Runtime/Drawers/FolderPathAttribute.cs @@ -3,11 +3,11 @@ namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class FolderPath : DrawerPropertyAttribute + public sealed class FolderPathAttribute : DrawerPropertyAttribute { public readonly bool useAbsolute; - public FolderPath(bool useAbsolute = false) + public FolderPathAttribute(bool useAbsolute = false) { this.useAbsolute = useAbsolute; } diff --git a/Runtime/Drawers/FolderPath.cs.meta b/Runtime/Drawers/FolderPathAttribute.cs.meta similarity index 100% rename from Runtime/Drawers/FolderPath.cs.meta rename to Runtime/Drawers/FolderPathAttribute.cs.meta diff --git a/Runtime/Drawers/IntToAnimatorParameter.cs b/Runtime/Drawers/IntToAnimatorParameterAttribute.cs similarity index 63% rename from Runtime/Drawers/IntToAnimatorParameter.cs rename to Runtime/Drawers/IntToAnimatorParameterAttribute.cs index d6a3633..0fa2628 100644 --- a/Runtime/Drawers/IntToAnimatorParameter.cs +++ b/Runtime/Drawers/IntToAnimatorParameterAttribute.cs @@ -3,11 +3,11 @@ using System; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class IntToAnimatorParameter : DrawerPropertyAttribute + public sealed class IntToAnimatorParameterAttribute : DrawerPropertyAttribute { public readonly string animatorFieldName; - public IntToAnimatorParameter(string animatorFieldName) + public IntToAnimatorParameterAttribute(string animatorFieldName) { this.animatorFieldName = animatorFieldName; } diff --git a/Runtime/Drawers/IntToAnimatorParameter.cs.meta b/Runtime/Drawers/IntToAnimatorParameterAttribute.cs.meta similarity index 100% rename from Runtime/Drawers/IntToAnimatorParameter.cs.meta rename to Runtime/Drawers/IntToAnimatorParameterAttribute.cs.meta diff --git a/Runtime/Drawers/IntToEnum.cs b/Runtime/Drawers/IntToEnumAttribute.cs similarity index 85% rename from Runtime/Drawers/IntToEnum.cs rename to Runtime/Drawers/IntToEnumAttribute.cs index f34f28b..e268106 100644 --- a/Runtime/Drawers/IntToEnum.cs +++ b/Runtime/Drawers/IntToEnumAttribute.cs @@ -5,7 +5,7 @@ using UnityEngine.Scripting; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class IntToEnum : DrawerPropertyAttribute + public sealed class IntToEnumAttribute : DrawerPropertyAttribute { private Type type; @@ -13,14 +13,14 @@ namespace Module.Inspector private bool hasTriedFetchReplaceType; [Preserve] - public IntToEnum(Type type) + public IntToEnumAttribute(Type type) { this.type = type; hasTriedFetchReplaceType = true; } [Preserve] - public IntToEnum(Type type, string strTypeReplaceWith) + public IntToEnumAttribute(Type type, string strTypeReplaceWith) { this.type = type; this.strTypeReplaceWith = strTypeReplaceWith; diff --git a/Runtime/Drawers/IntToEnum.cs.meta b/Runtime/Drawers/IntToEnumAttribute.cs.meta similarity index 100% rename from Runtime/Drawers/IntToEnum.cs.meta rename to Runtime/Drawers/IntToEnumAttribute.cs.meta diff --git a/Runtime/Drawers/Percentage.cs b/Runtime/Drawers/IntToLayerAttribute.cs similarity index 66% rename from Runtime/Drawers/Percentage.cs rename to Runtime/Drawers/IntToLayerAttribute.cs index b8fb83c..708beaf 100644 --- a/Runtime/Drawers/Percentage.cs +++ b/Runtime/Drawers/IntToLayerAttribute.cs @@ -4,10 +4,10 @@ using UnityEngine.Scripting; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class Percentage : DrawerPropertyAttribute + public sealed class IntToLayerAttribute : DrawerPropertyAttribute { [Preserve] - public Percentage() + public IntToLayerAttribute() { } } diff --git a/Runtime/Drawers/IntToLayer.cs.meta b/Runtime/Drawers/IntToLayerAttribute.cs.meta similarity index 100% rename from Runtime/Drawers/IntToLayer.cs.meta rename to Runtime/Drawers/IntToLayerAttribute.cs.meta diff --git a/Runtime/Drawers/MethodButton.cs b/Runtime/Drawers/MethodButtonAttribute.cs similarity index 65% rename from Runtime/Drawers/MethodButton.cs rename to Runtime/Drawers/MethodButtonAttribute.cs index 9bbedd9..55ee34a 100644 --- a/Runtime/Drawers/MethodButton.cs +++ b/Runtime/Drawers/MethodButtonAttribute.cs @@ -4,16 +4,16 @@ using UnityEngine.Scripting; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] - public sealed class MethodButton: DrawerMethodAttribute + public sealed class MethodButtonAttribute: DrawerMethodAttribute { public readonly string name; [Preserve] - public MethodButton() + public MethodButtonAttribute() { } - public MethodButton(string name) + public MethodButtonAttribute(string name) { this.name = name; } diff --git a/Runtime/Drawers/MethodButton.cs.meta b/Runtime/Drawers/MethodButtonAttribute.cs.meta similarity index 100% rename from Runtime/Drawers/MethodButton.cs.meta rename to Runtime/Drawers/MethodButtonAttribute.cs.meta diff --git a/Runtime/Drawers/Naming.cs b/Runtime/Drawers/NamingAttribute.cs similarity index 90% rename from Runtime/Drawers/Naming.cs rename to Runtime/Drawers/NamingAttribute.cs index 1b755b3..b69c756 100644 --- a/Runtime/Drawers/Naming.cs +++ b/Runtime/Drawers/NamingAttribute.cs @@ -3,7 +3,7 @@ namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class Naming : DrawerPropertyAttribute + public sealed class NamingAttribute : DrawerPropertyAttribute { public enum EPatternType : byte { @@ -35,7 +35,7 @@ namespace Module.Inspector public readonly EPatternType type; - public Naming(EPatternType type) + public NamingAttribute(EPatternType type) { this.type = type; } diff --git a/Runtime/Drawers/Naming.cs.meta b/Runtime/Drawers/NamingAttribute.cs.meta similarity index 100% rename from Runtime/Drawers/Naming.cs.meta rename to Runtime/Drawers/NamingAttribute.cs.meta diff --git a/Runtime/Drawers/PercentageAttribute.cs b/Runtime/Drawers/PercentageAttribute.cs new file mode 100644 index 0000000..83769da --- /dev/null +++ b/Runtime/Drawers/PercentageAttribute.cs @@ -0,0 +1,14 @@ +using System; +using UnityEngine.Scripting; + +namespace Module.Inspector +{ + [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] + public sealed class PercentageAttribute : DrawerPropertyAttribute + { + [Preserve] + public PercentageAttribute() + { + } + } +} \ No newline at end of file diff --git a/Runtime/Drawers/Percentage.cs.meta b/Runtime/Drawers/PercentageAttribute.cs.meta similarity index 100% rename from Runtime/Drawers/Percentage.cs.meta rename to Runtime/Drawers/PercentageAttribute.cs.meta diff --git a/Runtime/Drawers/StringToField.cs b/Runtime/Drawers/PopupFromConstAttribute.cs similarity index 64% rename from Runtime/Drawers/StringToField.cs rename to Runtime/Drawers/PopupFromConstAttribute.cs index d6a395d..6a99108 100644 --- a/Runtime/Drawers/StringToField.cs +++ b/Runtime/Drawers/PopupFromConstAttribute.cs @@ -3,11 +3,11 @@ namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class StringToField : DrawerPropertyAttribute + public sealed class PopupFromConstAttribute : DrawerPropertyAttribute { public readonly Type type; - public StringToField(Type type) + public PopupFromConstAttribute(Type type) { this.type = type; } diff --git a/Runtime/Drawers/PopupFromConst.cs.meta b/Runtime/Drawers/PopupFromConstAttribute.cs.meta similarity index 100% rename from Runtime/Drawers/PopupFromConst.cs.meta rename to Runtime/Drawers/PopupFromConstAttribute.cs.meta diff --git a/Runtime/AccessModifiers/DisableFieldInPlayMode.cs b/Runtime/Drawers/QuaternionToEulerAttribute.cs similarity index 63% rename from Runtime/AccessModifiers/DisableFieldInPlayMode.cs rename to Runtime/Drawers/QuaternionToEulerAttribute.cs index ab2d498..f679ef7 100644 --- a/Runtime/AccessModifiers/DisableFieldInPlayMode.cs +++ b/Runtime/Drawers/QuaternionToEulerAttribute.cs @@ -4,10 +4,10 @@ using UnityEngine.Scripting; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class DisableFieldInPlayMode : AccessModifierPropertyAttribute + public sealed class QuaternionToEulerAttribute : DrawerPropertyAttribute { [Preserve] - public DisableFieldInPlayMode() + public QuaternionToEulerAttribute() { } } diff --git a/Runtime/Drawers/QuaternionToEuler.cs.meta b/Runtime/Drawers/QuaternionToEulerAttribute.cs.meta similarity index 100% rename from Runtime/Drawers/QuaternionToEuler.cs.meta rename to Runtime/Drawers/QuaternionToEulerAttribute.cs.meta diff --git a/Runtime/Drawers/SceneDropdown.cs b/Runtime/Drawers/SceneDropdown.cs deleted file mode 100644 index f2d15e3..0000000 --- a/Runtime/Drawers/SceneDropdown.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using UnityEngine.Scripting; - -namespace Module.Inspector -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class SceneDropdown : DrawerPropertyAttribute - { - [Preserve] - public SceneDropdown() - { - } - } -} \ No newline at end of file diff --git a/Runtime/Drawers/SceneDropdownAttribute.cs b/Runtime/Drawers/SceneDropdownAttribute.cs new file mode 100644 index 0000000..1779802 --- /dev/null +++ b/Runtime/Drawers/SceneDropdownAttribute.cs @@ -0,0 +1,14 @@ +using System; +using UnityEngine.Scripting; + +namespace Module.Inspector +{ + [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] + public sealed class SceneDropdownAttribute : DrawerPropertyAttribute + { + [Preserve] + public SceneDropdownAttribute() + { + } + } +} \ No newline at end of file diff --git a/Runtime/Drawers/SceneDropdown.cs.meta b/Runtime/Drawers/SceneDropdownAttribute.cs.meta similarity index 100% rename from Runtime/Drawers/SceneDropdown.cs.meta rename to Runtime/Drawers/SceneDropdownAttribute.cs.meta diff --git a/Runtime/Drawers/Slider.cs b/Runtime/Drawers/Slider.cs deleted file mode 100644 index 7eb4d22..0000000 --- a/Runtime/Drawers/Slider.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using UnityEngine.Scripting; - -namespace Module.Inspector -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class Slider : DrawerPropertyAttribute - { - [Preserve] - public Slider() - { - } - } -} \ No newline at end of file diff --git a/Runtime/AccessModifiers/Disable.cs b/Runtime/Drawers/SliderAttribute.cs similarity index 68% rename from Runtime/AccessModifiers/Disable.cs rename to Runtime/Drawers/SliderAttribute.cs index f95acd7..d38b216 100644 --- a/Runtime/AccessModifiers/Disable.cs +++ b/Runtime/Drawers/SliderAttribute.cs @@ -4,10 +4,10 @@ using UnityEngine.Scripting; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class Disable : AccessModifierPropertyAttribute + public sealed class SliderAttribute : DrawerPropertyAttribute { [Preserve] - public Disable() + public SliderAttribute() { } } diff --git a/Runtime/Drawers/Slider.cs.meta b/Runtime/Drawers/SliderAttribute.cs.meta similarity index 100% rename from Runtime/Drawers/Slider.cs.meta rename to Runtime/Drawers/SliderAttribute.cs.meta diff --git a/Runtime/Drawers/StringToAnimatorParameter.cs b/Runtime/Drawers/StringToAnimatorParameterAttribute.cs similarity index 62% rename from Runtime/Drawers/StringToAnimatorParameter.cs rename to Runtime/Drawers/StringToAnimatorParameterAttribute.cs index 5a2bab5..00d997b 100644 --- a/Runtime/Drawers/StringToAnimatorParameter.cs +++ b/Runtime/Drawers/StringToAnimatorParameterAttribute.cs @@ -3,11 +3,11 @@ using System; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class StringToAnimatorParameter : DrawerPropertyAttribute + public sealed class StringToAnimatorParameterAttribute : DrawerPropertyAttribute { public readonly string animatorFieldName; - public StringToAnimatorParameter(string animatorFieldName) + public StringToAnimatorParameterAttribute(string animatorFieldName) { this.animatorFieldName = animatorFieldName; } diff --git a/Runtime/Drawers/StringToAnimatorParameter.cs.meta b/Runtime/Drawers/StringToAnimatorParameterAttribute.cs.meta similarity index 100% rename from Runtime/Drawers/StringToAnimatorParameter.cs.meta rename to Runtime/Drawers/StringToAnimatorParameterAttribute.cs.meta diff --git a/Runtime/Drawers/PopupFromConst.cs b/Runtime/Drawers/StringToFieldAttribute.cs similarity index 65% rename from Runtime/Drawers/PopupFromConst.cs rename to Runtime/Drawers/StringToFieldAttribute.cs index 603ea8b..0806db4 100644 --- a/Runtime/Drawers/PopupFromConst.cs +++ b/Runtime/Drawers/StringToFieldAttribute.cs @@ -3,11 +3,11 @@ namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class PopupFromConst : DrawerPropertyAttribute + public sealed class StringToFieldAttribute : DrawerPropertyAttribute { public readonly Type type; - public PopupFromConst(Type type) + public StringToFieldAttribute(Type type) { this.type = type; } diff --git a/Runtime/Drawers/StringToField.cs.meta b/Runtime/Drawers/StringToFieldAttribute.cs.meta similarity index 100% rename from Runtime/Drawers/StringToField.cs.meta rename to Runtime/Drawers/StringToFieldAttribute.cs.meta diff --git a/Runtime/Drawers/StringToType.cs b/Runtime/Drawers/StringToTypeAttribute.cs similarity index 66% rename from Runtime/Drawers/StringToType.cs rename to Runtime/Drawers/StringToTypeAttribute.cs index 034726f..4618e00 100644 --- a/Runtime/Drawers/StringToType.cs +++ b/Runtime/Drawers/StringToTypeAttribute.cs @@ -3,11 +3,11 @@ namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class StringToType : DrawerPropertyAttribute + public sealed class StringToTypeAttribute : DrawerPropertyAttribute { public readonly Type assignableFrom; - public StringToType(Type assignableFrom) + public StringToTypeAttribute(Type assignableFrom) { this.assignableFrom = assignableFrom; } diff --git a/Runtime/Drawers/StringToType.cs.meta b/Runtime/Drawers/StringToTypeAttribute.cs.meta similarity index 100% rename from Runtime/Drawers/StringToType.cs.meta rename to Runtime/Drawers/StringToTypeAttribute.cs.meta diff --git a/Runtime/Drawers/Tag.cs b/Runtime/Drawers/Tag.cs deleted file mode 100644 index c4311b7..0000000 --- a/Runtime/Drawers/Tag.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using UnityEngine.Scripting; - -namespace Module.Inspector -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class Tag : DrawerPropertyAttribute - { - [Preserve] - public Tag() - { - } - } -} \ No newline at end of file diff --git a/Runtime/Drawers/IntToLayer.cs b/Runtime/Drawers/TagAttribute.cs similarity index 69% rename from Runtime/Drawers/IntToLayer.cs rename to Runtime/Drawers/TagAttribute.cs index 0046f1d..47a08f7 100644 --- a/Runtime/Drawers/IntToLayer.cs +++ b/Runtime/Drawers/TagAttribute.cs @@ -4,10 +4,10 @@ using UnityEngine.Scripting; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class IntToLayer : DrawerPropertyAttribute + public sealed class TagAttribute : DrawerPropertyAttribute { [Preserve] - public IntToLayer() + public TagAttribute() { } } diff --git a/Runtime/Drawers/Tag.cs.meta b/Runtime/Drawers/TagAttribute.cs.meta similarity index 100% rename from Runtime/Drawers/Tag.cs.meta rename to Runtime/Drawers/TagAttribute.cs.meta diff --git a/Runtime/Drawers/UrlGoTo.cs b/Runtime/Drawers/UrlGoTo.cs deleted file mode 100644 index 6a594a7..0000000 --- a/Runtime/Drawers/UrlGoTo.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using UnityEngine.Scripting; - -namespace Module.Inspector -{ - [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class UrlGoTo : DrawerPropertyAttribute - { - [Preserve] - public UrlGoTo() - { - } - } -} \ No newline at end of file diff --git a/Runtime/Drawers/EnumFlag.cs b/Runtime/Drawers/UrlGoToAttribute.cs similarity index 67% rename from Runtime/Drawers/EnumFlag.cs rename to Runtime/Drawers/UrlGoToAttribute.cs index 88f6820..37bf10d 100644 --- a/Runtime/Drawers/EnumFlag.cs +++ b/Runtime/Drawers/UrlGoToAttribute.cs @@ -4,10 +4,10 @@ using UnityEngine.Scripting; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class EnumFlag : DrawerPropertyAttribute + public sealed class UrlGoToAttribute : DrawerPropertyAttribute { [Preserve] - public EnumFlag() + public UrlGoToAttribute() { } } diff --git a/Runtime/Drawers/UrlGoTo.cs.meta b/Runtime/Drawers/UrlGoToAttribute.cs.meta similarity index 100% rename from Runtime/Drawers/UrlGoTo.cs.meta rename to Runtime/Drawers/UrlGoToAttribute.cs.meta diff --git a/Runtime/ValueModifiers/ArrayIndex.cs b/Runtime/ValueModifiers/ArrayIndexAttribute.cs similarity index 65% rename from Runtime/ValueModifiers/ArrayIndex.cs rename to Runtime/ValueModifiers/ArrayIndexAttribute.cs index 78ecb92..6393246 100644 --- a/Runtime/ValueModifiers/ArrayIndex.cs +++ b/Runtime/ValueModifiers/ArrayIndexAttribute.cs @@ -3,11 +3,11 @@ namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class ArrayIndex : ValueModifierPropertyAttribute + public sealed class ArrayIndexAttribute : ValueModifierPropertyAttribute { public readonly string fieldName; - public ArrayIndex(string fieldName) + public ArrayIndexAttribute(string fieldName) { this.fieldName = fieldName; } diff --git a/Runtime/ValueModifiers/ArrayIndex.cs.meta b/Runtime/ValueModifiers/ArrayIndexAttribute.cs.meta similarity index 100% rename from Runtime/ValueModifiers/ArrayIndex.cs.meta rename to Runtime/ValueModifiers/ArrayIndexAttribute.cs.meta diff --git a/Runtime/ValueModifiers/LargerThanField.cs b/Runtime/ValueModifiers/LargerThanFieldAttribute.cs similarity index 63% rename from Runtime/ValueModifiers/LargerThanField.cs rename to Runtime/ValueModifiers/LargerThanFieldAttribute.cs index 385b95c..6b4dafe 100644 --- a/Runtime/ValueModifiers/LargerThanField.cs +++ b/Runtime/ValueModifiers/LargerThanFieldAttribute.cs @@ -3,11 +3,11 @@ namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class LargerThanField : ValueModifierPropertyAttribute + public sealed class LargerThanFieldAttribute : ValueModifierPropertyAttribute { public readonly string fieldName; - public LargerThanField(string fieldName) + public LargerThanFieldAttribute(string fieldName) { this.fieldName = fieldName; } diff --git a/Runtime/ValueModifiers/LargerThanField.cs.meta b/Runtime/ValueModifiers/LargerThanFieldAttribute.cs.meta similarity index 100% rename from Runtime/ValueModifiers/LargerThanField.cs.meta rename to Runtime/ValueModifiers/LargerThanFieldAttribute.cs.meta diff --git a/Runtime/ValueModifiers/MaxValue.cs b/Runtime/ValueModifiers/MaxValueAttribute.cs similarity index 72% rename from Runtime/ValueModifiers/MaxValue.cs rename to Runtime/ValueModifiers/MaxValueAttribute.cs index 8485903..a4b6b02 100644 --- a/Runtime/ValueModifiers/MaxValue.cs +++ b/Runtime/ValueModifiers/MaxValueAttribute.cs @@ -4,18 +4,18 @@ using UnityEngine; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class MaxValue : ValueModifierPropertyAttribute + public sealed class MaxValueAttribute : ValueModifierPropertyAttribute { public readonly int intValue; public readonly float floatValue; - public MaxValue(int value) + public MaxValueAttribute(int value) { intValue = value; floatValue = value; } - public MaxValue(float value) + public MaxValueAttribute(float value) { intValue = Mathf.RoundToInt(value); floatValue = value; diff --git a/Runtime/ValueModifiers/MaxValue.cs.meta b/Runtime/ValueModifiers/MaxValueAttribute.cs.meta similarity index 100% rename from Runtime/ValueModifiers/MaxValue.cs.meta rename to Runtime/ValueModifiers/MaxValueAttribute.cs.meta diff --git a/Runtime/ValueModifiers/MinValue.cs b/Runtime/ValueModifiers/MinValueAttribute.cs similarity index 72% rename from Runtime/ValueModifiers/MinValue.cs rename to Runtime/ValueModifiers/MinValueAttribute.cs index 6afef97..920211f 100644 --- a/Runtime/ValueModifiers/MinValue.cs +++ b/Runtime/ValueModifiers/MinValueAttribute.cs @@ -4,18 +4,18 @@ using UnityEngine; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class MinValue : ValueModifierPropertyAttribute + public sealed class MinValueAttribute : ValueModifierPropertyAttribute { public readonly int intValue; public readonly float floatValue; - public MinValue(int value) + public MinValueAttribute(int value) { intValue = value; floatValue = value; } - public MinValue(float value) + public MinValueAttribute(float value) { intValue = Mathf.RoundToInt(value); floatValue = value; diff --git a/Runtime/ValueModifiers/MinValue.cs.meta b/Runtime/ValueModifiers/MinValueAttribute.cs.meta similarity index 100% rename from Runtime/ValueModifiers/MinValue.cs.meta rename to Runtime/ValueModifiers/MinValueAttribute.cs.meta diff --git a/Runtime/ValueModifiers/SmallerThanField.cs b/Runtime/ValueModifiers/SmallerThanFieldAttribute.cs similarity index 63% rename from Runtime/ValueModifiers/SmallerThanField.cs rename to Runtime/ValueModifiers/SmallerThanFieldAttribute.cs index a4c30df..e3c153d 100644 --- a/Runtime/ValueModifiers/SmallerThanField.cs +++ b/Runtime/ValueModifiers/SmallerThanFieldAttribute.cs @@ -3,11 +3,11 @@ namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] - public sealed class SmallerThanField : ValueModifierPropertyAttribute + public sealed class SmallerThanFieldAttribute : ValueModifierPropertyAttribute { public readonly string fieldName; - public SmallerThanField(string fieldName) + public SmallerThanFieldAttribute(string fieldName) { this.fieldName = fieldName; } diff --git a/Runtime/ValueModifiers/SmallerThanField.cs.meta b/Runtime/ValueModifiers/SmallerThanFieldAttribute.cs.meta similarity index 100% rename from Runtime/ValueModifiers/SmallerThanField.cs.meta rename to Runtime/ValueModifiers/SmallerThanFieldAttribute.cs.meta