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); }
public override VFXDataAnchor InstantiateDataAnchor(VFXDataAnchorController controller, VFXNodeUI node) { if (controller.direction == Direction.Input) { return(VFXInputParameterDataAnchor.Create(controller, node)); } else { return(VFXOutputParameterDataAnchor.Create(controller, node)); } }