com.alicizax.kybernetik.ani.../Editor/GUI/Field Drawers/Units/AnimationSpeedAttributeDrawer.cs
陈思海 3e7c253249 init
2025-01-08 15:26:57 +08:00

30 lines
1.0 KiB
C#

// Animancer // https://kybernetik.com.au/animancer // Copyright 2018-2024 Kybernetik //
#if UNITY_EDITOR && UNITY_IMGUI
using UnityEditor;
using UnityEngine;
namespace Animancer.Units.Editor
{
/// <summary>[Editor-Only]
/// A <see cref="PropertyDrawer"/> for fields with an <see cref="AnimationSpeedAttributeDrawer"/>
/// which displays them using an 'x' suffix.
/// </summary>
/// https://kybernetik.com.au/animancer/api/Animancer.Units.Editor/AnimationSpeedAttributeDrawer
[CustomPropertyDrawer(typeof(AnimationSpeedAttribute), true)]
public class AnimationSpeedAttributeDrawer : UnitsAttributeDrawer
{
/************************************************************************************************************************/
/// <inheritdoc/>
protected override int GetLineCount(SerializedProperty property, GUIContent label)
=> 1;
/************************************************************************************************************************/
}
}
#endif