canto/Assets/Scripts/Editor/Drawers/AnimatorControllerPropertyDrawer.cs
2025-10-02 15:28:03 -04:00

21 lines
795 B
C#

namespace KitsuneCafe.Editor.PropertyDrawers
{
using UnityEditor;
using UnityEditor.Animations;
using UnityEngine;
public abstract class AnimatorControllerPropertyDrawer<TAttribute> : ComponentObjectFieldPropertyDrawer<TAttribute, AnimatorController>
where TAttribute : PropertyAttribute
{
public AnimatorControllerPropertyDrawer(SerializedPropertyType propertyType) : base(propertyType)
{
}
protected abstract void DrawAnimatorControllerProperty(Rect position, SerializedProperty property, AnimatorController animatorController);
protected override void DrawComponentProperty(Rect position, SerializedProperty property, AnimatorController animatorController)
{
DrawAnimatorControllerProperty(position, property, animatorController);
}
}
}