namespace Unity.VisualScripting { /// /// Gets the value of a graph variable. /// [UnitSurtitle("Graph")] public sealed class GetGraphVariable : GetVariableUnit, IGraphVariableUnit { public GetGraphVariable() : base() { } public GetGraphVariable(string defaultName) : base(defaultName) { } protected override VariableDeclarations GetDeclarations(Flow flow) { return Variables.Graph(flow.stack); } } }