Maze / Library /PackageCache /com.unity.visualscripting@1.8.0 /Runtime /VisualScripting.Flow /Framework /Graph /HasScriptGraph.cs
| using JetBrains.Annotations; | |
| namespace Unity.VisualScripting | |
| { | |
| /// <summary> | |
| /// Check if a GameObject or ScriptMachine has a ScriptGraph | |
| /// </summary> | |
| [] | |
| [] | |
| public sealed class HasScriptGraph : HasGraph<FlowGraph, ScriptGraphAsset, ScriptMachine> | |
| { | |
| /// <summary> | |
| /// The type of object that handles the graph. | |
| /// </summary> | |
| [] | |
| public ScriptGraphContainerType containerType { get; set; } | |
| protected override bool isGameObject => containerType == ScriptGraphContainerType.GameObject; | |
| } | |
| } | |