Exemplo n.º 1
0
        public static new VFXOutputParameterDataAnchor Create(VFXDataAnchorController controller, VFXNodeUI node)
        {
            var anchor = new VFXOutputParameterDataAnchor(controller.orientation, controller.direction, controller.portType, node);

            anchor.m_EdgeConnector = new EdgeConnector <VFXDataEdge>(anchor);
            anchor.controller      = controller;
            anchor.AddManipulator(anchor.m_EdgeConnector);
            return(anchor);
        }
Exemplo n.º 2
0
 public override VFXDataAnchor InstantiateDataAnchor(VFXDataAnchorController controller, VFXNodeUI node)
 {
     if (controller.direction == Direction.Input)
     {
         return(VFXInputParameterDataAnchor.Create(controller, node));
     }
     else
     {
         return(VFXOutputParameterDataAnchor.Create(controller, node));
     }
 }