暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

BoltStateConfiguration.cs 1.3KB

1234567891011121314151617181920212223242526272829303132333435
  1. namespace Unity.VisualScripting
  2. {
  3. [Plugin(BoltState.ID)]
  4. public sealed class BoltStateConfiguration : PluginConfiguration
  5. {
  6. private BoltStateConfiguration(BoltState plugin) : base(plugin) { }
  7. public override string header => "State Graphs";
  8. /// <summary>
  9. /// Determines under which condition events should be shown in state nodes.
  10. /// </summary>
  11. [EditorPref]
  12. public StateRevealCondition statesReveal { get; set; } = StateRevealCondition.Always;
  13. /// <summary>
  14. /// Determines under which condition event names should be shown in state transition.
  15. /// </summary>
  16. [EditorPref]
  17. public StateRevealCondition transitionsReveal { get; set; } = StateRevealCondition.OnHoverWithAlt;
  18. /// <summary>
  19. /// Whether state transitions should show an arrow at their destination state. This can appear confusing when there are
  20. /// multiple transitions.
  21. /// </summary>
  22. [EditorPref]
  23. public bool transitionsEndArrow { get; set; } = false;
  24. /// <summary>
  25. /// Whether traversed transitions should show a droplet animation.
  26. /// </summary>
  27. [EditorPref]
  28. public bool animateTransitions { get; set; } = true;
  29. }
  30. }