- Implemented function node and bind/unbind node compatiblility/filtering

- Added NodeTypeHint enum
This commit is contained in:
Nils Hausfeld
2023-09-27 16:24:33 +02:00
parent be944e35a5
commit c4da34a463
4 changed files with 97 additions and 10 deletions

View File

@@ -370,7 +370,7 @@ namespace FlaxEditor.Surface
bindNode.Description = SurfaceUtils.GetVisualScriptMemberInfoDescription(member);
bindNode.SubTitle = string.Format(" (in {0})", scriptTypeName);
((IList<NodeArchetype>)group.Archetypes).Add(bindNode);
// Add Unbind event node
var unbindNode = (NodeArchetype)Archetypes.Function.Nodes[9].Clone();
unbindNode.DefaultValues[0] = scriptTypeTypeName;
@@ -589,6 +589,7 @@ namespace FlaxEditor.Surface
node.DefaultValues[0] = name;
node.DefaultValues[1] = parameters.Length;
node.Title = "Override " + name;
node.Tag = member;
nodes.Add(node);
}
}