暫無描述
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.

BoltFlowConfiguration.cs 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. using System.Collections.Generic;
  2. namespace Unity.VisualScripting
  3. {
  4. [Plugin(BoltFlow.ID)]
  5. public sealed class BoltFlowConfiguration : PluginConfiguration
  6. {
  7. private BoltFlowConfiguration(BoltFlow plugin) : base(plugin) { }
  8. public override string header => "Script Graphs";
  9. /// <summary>
  10. /// (Experimental) Whether the node database should be incrementally updated
  11. /// whenever a codebase change is detected.
  12. /// </summary>
  13. [EditorPref, RenamedFrom("updateUnitsAutomatically")]
  14. public bool updateNodesAutomatically { get; set; } = false;
  15. /// <summary>
  16. /// Whether predictive debugging should warn about null value inputs.
  17. /// Note that in some cases, this setting may report false positives.
  18. /// </summary>
  19. [EditorPref]
  20. public bool predictPotentialNullReferences { get; set; } = true;
  21. /// <summary>
  22. /// Whether predictive debugging should warn about missing components.
  23. /// Note that in some cases, this setting may report false positives.
  24. /// </summary>
  25. [EditorPref]
  26. public bool predictPotentialMissingComponents { get; set; } = true;
  27. /// <summary>
  28. /// Whether values should be shown on flow graph connections.
  29. /// </summary>
  30. [EditorPref]
  31. public bool showConnectionValues { get; set; } = true;
  32. /// <summary>
  33. /// Whether predictable values should be shown on flow graph connections.
  34. /// </summary>
  35. [EditorPref]
  36. public bool predictConnectionValues { get; set; } = false;
  37. /// <summary>
  38. /// Whether labels should be hidden on ports when the value can be deduced from the context.
  39. /// Disabling will make nodes more explicit but less compact.
  40. /// </summary>
  41. [EditorPref]
  42. public bool hidePortLabels { get; set; } = true;
  43. /// <summary>
  44. /// Whether active control connections should show a droplet animation.
  45. /// </summary>
  46. [EditorPref]
  47. public bool animateControlConnections { get; set; } = true;
  48. /// <summary>
  49. /// Whether active value connections should show a droplet animation.
  50. /// </summary>
  51. [EditorPref]
  52. public bool animateValueConnections { get; set; } = true;
  53. /// <summary>
  54. /// When active, right-clicking a flow graph will skip the context menu
  55. /// and instantly open the fuzzy finder. To open the context menu, hold shift.
  56. /// </summary>
  57. [EditorPref]
  58. public bool skipContextMenu { get; set; } = false;
  59. [ProjectSetting(visible = false, resettable = false)]
  60. public HashSet<string> favoriteUnitOptions { get; set; } = new HashSet<string>();
  61. }
  62. }