Added IExecutable and ISlotContainer interface.
Changed SlotContainerNode to ExecutableNode
This commit is contained in:
18
Sample/Runtime/Models/Nodes/Output.cs
Normal file
18
Sample/Runtime/Models/Nodes/Output.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Misaki.GraphView.Sample
|
||||
{
|
||||
[NodeInfo("Output Node", "Output")]
|
||||
public class Output : BackTraceExecutableNode
|
||||
{
|
||||
[NodeInput]
|
||||
private float _input;
|
||||
|
||||
protected override bool OnExecute()
|
||||
{
|
||||
GraphObject.Logger.LogInfo(this, $"{_input}");
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user