Maze / Library /PackageCache /com.unity.visualscripting@1.8.0 /Runtime /VisualScripting.State /Framework /Graph /HasStateGraph.cs
| using System; | |
| using JetBrains.Annotations; | |
| using UnityEngine; | |
| namespace Unity.VisualScripting | |
| { | |
| /// <summary> | |
| /// Check if a GameObject or StateMachine has a StateGraph | |
| /// </summary> | |
| [] | |
| [] | |
| public sealed class HasStateGraph : HasGraph<StateGraph, StateGraphAsset, StateMachine> | |
| { | |
| /// <summary> | |
| /// The type of object that handles the graph. | |
| /// </summary> | |
| [] | |
| public StateGraphContainerType containerType { get; set; } | |
| protected override bool isGameObject => containerType == StateGraphContainerType.GameObject; | |
| } | |
| } | |