19 lines
585 B
C#
19 lines
585 B
C#
using UnityEngine;
|
|
|
|
namespace EditorAttributes
|
|
{
|
|
/// <summary>
|
|
/// Attribute to display a dropdown of animator parameters
|
|
/// </summary>
|
|
public class AnimatorParamDropdownAttribute : PropertyAttribute
|
|
{
|
|
public string AnimatorFieldName { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Attribute to display a dropdown of animator parameters
|
|
/// </summary>
|
|
/// <param name="animatorFieldName">The animator from which to get the parameters</param>
|
|
public AnimatorParamDropdownAttribute(string animatorFieldName) => AnimatorFieldName = animatorFieldName;
|
|
}
|
|
}
|