ActiveInModeAttribute.cs 797 B

1234567891011121314151617181920212223242526
  1. using System;
  2. namespace UnityEditor.Timeline.Actions
  3. {
  4. /// <summary>
  5. /// Define the activeness of an action depending on its timeline mode.
  6. /// </summary>
  7. /// <seealso cref="TimelineModes"/>
  8. [AttributeUsage(AttributeTargets.Class)]
  9. public class ActiveInModeAttribute : Attribute
  10. {
  11. /// <summary>
  12. /// Modes that will be used for activeness of an action.
  13. /// </summary>
  14. public TimelineModes modes { get; }
  15. /// <summary>
  16. /// Defines in which mode the action will be active.
  17. /// </summary>
  18. /// <param name="timelineModes">Modes that will define activeness of the action.</param>
  19. public ActiveInModeAttribute(TimelineModes timelineModes)
  20. {
  21. modes = timelineModes;
  22. }
  23. }
  24. }