Singularity/Library/PackageCache/com.unity.visualscripting@1.../Runtime/VisualScripting.State/Units/SetStateGraph.cs

20 lines
624 B
C#
Raw Normal View History

2024-05-06 14:45:45 -04:00
using JetBrains.Annotations;
namespace Unity.VisualScripting
{
/// <summary>
/// Set a StateGraphAsset to a StateMachine
/// </summary>
[TypeIcon(typeof(StateGraph))]
public class SetStateGraph : SetGraph<StateGraph, StateGraphAsset, StateMachine>
{
/// <summary>
/// The type of object that handles the graph.
/// </summary>
[Serialize, Inspectable, UnitHeaderInspectable, UsedImplicitly]
public StateGraphContainerType containerType { get; set; }
protected override bool isGameObject => containerType == StateGraphContainerType.GameObject;
}
}