Renamed all attributes and drawers to have postfix of either Attribute or AttributeDrawer
This commit is contained in:
parent
81bac32538
commit
dc15bfec81
161 changed files with 265 additions and 265 deletions
13
Editor/AccessModifiers/DisableAttributeDrawer.cs
Normal file
13
Editor/AccessModifiers/DisableAttributeDrawer.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
using UnityEditor;
|
||||
|
||||
namespace Module.Inspector.Editor
|
||||
{
|
||||
[CustomPropertyDrawer(typeof(DisableAttribute))]
|
||||
internal sealed class DisableAttributeDrawer : AccessModifierPropertyDrawer
|
||||
{
|
||||
public override EAccessType GetAccessType(AccessModifierPropertyAttribute attribute, SerializedProperty property, EAccessType currentAccessType)
|
||||
{
|
||||
return currentAccessType == EAccessType.Enabled ? EAccessType.ReadOnly : currentAccessType;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue