Beispiel #1
0
        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;
        }
Beispiel #2
0
        public void RegisterNodeAndPositionOnGraph(AbstractMaterialNode graphNode, T3D.Node unrealNode)
        {
            AddNodeToGraph(graphNode);
            PositionNodeOnGraph(graphNode, unrealNode);

            _nodeLookupByUnrealNodeName.Add(unrealNode.Name, graphNode);
        }
Beispiel #3
0
        public MaterialNodeConverter FindConverterForUnrealNode(T3D.Node unrealNode)
        {
            foreach (var converter in _nodeConverters)
            {
                if (converter.CanConvert(unrealNode))
                {
                    return(converter);
                }
            }

            return(null);
        }
Beispiel #4
0
 protected abstract int GetConnectionIdSlotForFunctionInput(string inputName, T3D.Node functionNode);
Beispiel #5
0
        public void ConnectUnrealNode(T3D.Node unrealNode)
        {
            var converter = FindConverterForUnrealNode(unrealNode);

            converter?.CreateConnections(unrealNode, _unrealMaterial, this);
        }
Beispiel #6
0
        public void ConvertUnrealNode(T3D.Node unrealNode)
        {
            var converter = FindConverterForUnrealNode(unrealNode);

            converter?.Convert(unrealNode, this);
        }