canto/Assets/Scripts/System/Attributes/AnimatorParamAttribute.cs
2025-08-14 19:11:32 -04:00

23 lines
694 B
C#

using System;
using UnityEngine;
using AnimatorControllerParameterType = UnityEngine.AnimatorControllerParameterType;
namespace KitsuneCafe.Sys.Attributes
{
[AttributeUsage(AttributeTargets.Field)]
public class AnimatorParamAttribute : PropertyAttribute
{
public readonly string AnimatorProperty;
public readonly AnimatorControllerParameterType? Type;
public AnimatorParamAttribute(string animatorProperty)
{
AnimatorProperty = animatorProperty;
}
public AnimatorParamAttribute(string animatorProperty, AnimatorControllerParameterType type) : this(animatorProperty)
{
Type = type;
}
}
}