1.6.0: Added FieldLabelFromType, StringToAnimationClipName and SingleSelectionFlag

This commit is contained in:
Anders Ejlersen 2022-07-09 23:30:15 +02:00
parent 7d99d62e11
commit 9faacb6291
15 changed files with 215 additions and 6 deletions

View 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()
{
}
}
}

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 668934e9c678422a9c99bbf73530b9da
timeCreated: 1657357154

View 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;
}
}
}

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: db8c0a1e63b14b4fb0ed092b97e03f45
timeCreated: 1656855775

View file

@ -0,0 +1,9 @@
using System;
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class FieldLabelFromTypeAttribute : PredrawerModifierPropertyAttribute
{
}
}

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 12906b50075143b5b9a0a92923ae0d83
timeCreated: 1656871443