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

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

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

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

            converter?.Convert(unrealNode, this);
        }