public void PositionNodeOnGraph(AbstractMaterialNode graphNode, T3D.Node unrealNode) { var drawState = graphNode.drawState; drawState.position = new Rect(new Vector2(unrealNode.EditorX, unrealNode.EditorY), Vector2.zero); graphNode.drawState = drawState; }
public void RegisterNodeAndPositionOnGraph(AbstractMaterialNode graphNode, T3D.Node unrealNode) { AddNodeToGraph(graphNode); PositionNodeOnGraph(graphNode, unrealNode); _nodeLookupByUnrealNodeName.Add(unrealNode.Name, graphNode); }
public MaterialNodeConverter FindConverterForUnrealNode(T3D.Node unrealNode) { foreach (var converter in _nodeConverters) { if (converter.CanConvert(unrealNode)) { return(converter); } } return(null); }
protected abstract int GetConnectionIdSlotForFunctionInput(string inputName, T3D.Node functionNode);
public void ConnectUnrealNode(T3D.Node unrealNode) { var converter = FindConverterForUnrealNode(unrealNode); converter?.CreateConnections(unrealNode, _unrealMaterial, this); }
public void ConvertUnrealNode(T3D.Node unrealNode) { var converter = FindConverterForUnrealNode(unrealNode); converter?.Convert(unrealNode, this); }