Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

MenuItemActionBase.cs 1.1KB

123456789101112131415161718192021222324252627282930313233343536
  1. namespace UnityEditor.Timeline.Actions
  2. {
  3. /// <summary>
  4. /// Indicates the validity of an action for a given data set.
  5. /// </summary>
  6. public enum ActionValidity
  7. {
  8. /// <summary>
  9. /// Action is valid in the provided context.
  10. /// If the action is linked to a menu item, the menu item will be visible.
  11. /// </summary>
  12. Valid,
  13. /// <summary>
  14. /// Action is not applicable in the current context.
  15. /// If the action is linked to a menu item, the menu item will not be shown.
  16. /// </summary>
  17. NotApplicable,
  18. /// <summary>
  19. /// Action is not valid in the current context.
  20. /// If the action is linked to a menu item, the menu item will be shown but grayed out.
  21. /// </summary>
  22. Invalid
  23. }
  24. struct MenuActionItem
  25. {
  26. public string category;
  27. public string entryName;
  28. public string shortCut;
  29. public int priority;
  30. public bool isActiveInMode;
  31. public ActionValidity state;
  32. public bool isChecked;
  33. public GenericMenu.MenuFunction callback;
  34. }
  35. }