暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }