21 lines
795 B
C#
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);
|
|
}
|
|
}
|
|
}
|