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