UltEventDrawer.cs 653 B

123456789101112131415161718192021
  1. // Animancer // https://kybernetik.com.au/animancer // Copyright 2018-2024 Kybernetik //
  2. #if UNITY_EDITOR && ULT_EVENTS
  3. using Animancer.Editor;
  4. using UnityEditor;
  5. [assembly: PolymorphicDrawerDetails(typeof(UltEvents.UltEventBase), SeparateHeader = true)]
  6. namespace Animancer.Editor
  7. {
  8. /// <summary>[Editor-Only] <see cref="PropertyDrawer"/> for <see cref="UltEvent"/>.</summary>
  9. /// https://kybernetik.com.au/animancer/api/Animancer.Editor/UltEventDrawer
  10. [CustomPropertyDrawer(typeof(UltEvent), true)]
  11. public class UltEventDrawer : UltEvents.Editor.UltEventDrawer,
  12. PropertyDrawers.IDiscardOnSelectionChange
  13. { }
  14. }
  15. #endif