1.6.0: Added FieldLabelFromType, StringToAnimationClipName and SingleSelectionFlag
This commit is contained in:
parent
7d99d62e11
commit
9faacb6291
15 changed files with 215 additions and 6 deletions
14
Runtime/Drawers/SingleSelectionFlagAttribute.cs
Normal file
14
Runtime/Drawers/SingleSelectionFlagAttribute.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
using System;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class SingleSelectionFlagAttribute : DrawerPropertyAttribute
|
||||
{
|
||||
[Preserve]
|
||||
public SingleSelectionFlagAttribute()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
3
Runtime/Drawers/SingleSelectionFlagAttribute.cs.meta
Normal file
3
Runtime/Drawers/SingleSelectionFlagAttribute.cs.meta
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 668934e9c678422a9c99bbf73530b9da
|
||||
timeCreated: 1657357154
|
||||
15
Runtime/Drawers/StringToAnimationClipNameAttribute.cs
Normal file
15
Runtime/Drawers/StringToAnimationClipNameAttribute.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System;
|
||||
|
||||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class StringToAnimationClipAttribute : DrawerPropertyAttribute
|
||||
{
|
||||
public readonly string animationFieldName;
|
||||
|
||||
public StringToAnimationClipAttribute(string animationFieldName)
|
||||
{
|
||||
this.animationFieldName = animationFieldName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: db8c0a1e63b14b4fb0ed092b97e03f45
|
||||
timeCreated: 1656855775
|
||||
9
Runtime/Predrawers/FieldLabelFromTypeAttribute.cs
Normal file
9
Runtime/Predrawers/FieldLabelFromTypeAttribute.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
using System;
|
||||
|
||||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class FieldLabelFromTypeAttribute : PredrawerModifierPropertyAttribute
|
||||
{
|
||||
}
|
||||
}
|
||||
3
Runtime/Predrawers/FieldLabelFromTypeAttribute.cs.meta
Normal file
3
Runtime/Predrawers/FieldLabelFromTypeAttribute.cs.meta
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 12906b50075143b5b9a0a92923ae0d83
|
||||
timeCreated: 1656871443
|
||||
Loading…
Add table
Add a link
Reference in a new issue