No Description
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.

SetScriptGraph.cs 631B

12345678910111213141516171819
  1. using JetBrains.Annotations;
  2. namespace Unity.VisualScripting
  3. {
  4. /// <summary>
  5. /// Set a ScriptGraph to a ScriptMachine
  6. /// </summary>
  7. [TypeIcon(typeof(FlowGraph))]
  8. public sealed class SetScriptGraph : SetGraph<FlowGraph, ScriptGraphAsset, ScriptMachine>
  9. {
  10. /// <summary>
  11. /// The type of object that handles the graph.
  12. /// </summary>
  13. [Serialize, Inspectable, UnitHeaderInspectable, UsedImplicitly]
  14. public ScriptGraphContainerType containerType { get; set; }
  15. protected override bool isGameObject => containerType == ScriptGraphContainerType.GameObject;
  16. }
  17. }