com.alicizax.kybernetik.ani.../Editor/GUI/Field Drawers/UnityEventDrawer.cs

20 lines
608 B
C#
Raw Permalink Normal View History

2025-01-08 15:26:57 +08:00
// Animancer // https://kybernetik.com.au/animancer // Copyright 2018-2024 Kybernetik //
#if UNITY_EDITOR
using Animancer.Editor;
using UnityEditor;
[assembly: PolymorphicDrawerDetails(typeof(UnityEngine.Events.UnityEventBase), SeparateHeader = true)]
namespace Animancer.Editor
{
/// <summary>[Editor-Only] <see cref="PropertyDrawer"/> for <see cref="UnityEvent"/>.</summary>
/// https://kybernetik.com.au/animancer/api/Animancer.Editor/UnityEventDrawer
[CustomPropertyDrawer(typeof(UnityEvent), true)]
public class UnityEventDrawer : UnityEditorInternal.UnityEventDrawer { }
}
#endif