Added the functionality to add RelayNode directly to edge between two Prot;

This commit is contained in:
Misaki
2024-11-07 00:42:52 +09:00
parent 02ae77f17a
commit 5ac1081d32
16 changed files with 243 additions and 150 deletions

View File

@@ -15,7 +15,7 @@ namespace Misaki.GraphView
public GraphObject GraphObject => graphObject;
public string Id => id;
/// <summary>
/// Initialize the node with the graph object, this method is called when the node is added to the graph.
/// </summary>
@@ -23,9 +23,9 @@ namespace Misaki.GraphView
{
graphObject = graph;
}
/// <summary>
/// Unload the node, this method is called when the node is removed from the graph.
/// Dispose the node, this method is called when the node is removed from the graph.
/// </summary>
public virtual void Dispose()
{

View File

@@ -10,6 +10,8 @@ namespace Misaki.GraphView
private bool _isExecuted;
public string portValueType;
public override void Initialize(GraphObject graph)
{
graphObject = graph;
@@ -31,6 +33,8 @@ namespace Misaki.GraphView
direction = SlotDirection.Output,
valueType = typeof(object).FullName
});
portValueType = typeof(object).FullName;
}
public void AddSlot(Slot slot)