UnityEventDrawer.cs 608 B

12345678910111213141516171819
  1. // Animancer // https://kybernetik.com.au/animancer // Copyright 2018-2024 Kybernetik //
  2. #if UNITY_EDITOR
  3. using Animancer.Editor;
  4. using UnityEditor;
  5. [assembly: PolymorphicDrawerDetails(typeof(UnityEngine.Events.UnityEventBase), SeparateHeader = true)]
  6. namespace Animancer.Editor
  7. {
  8. /// <summary>[Editor-Only] <see cref="PropertyDrawer"/> for <see cref="UnityEvent"/>.</summary>
  9. /// https://kybernetik.com.au/animancer/api/Animancer.Editor/UnityEventDrawer
  10. [CustomPropertyDrawer(typeof(UnityEvent), true)]
  11. public class UnityEventDrawer : UnityEditorInternal.UnityEventDrawer { }
  12. }
  13. #endif