protected override VFXDataAnchorController AddDataAnchor(VFXSlot slot, bool input, bool hidden) { var anchor = new VFXParameterOutputDataAnchorController(slot, this, hidden); anchor.portType = slot.property.type; return(anchor); }
protected override VFXDataAnchorController AddDataAnchor(VFXSlot slot, bool input, bool hidden) { VFXDataAnchorController newAnchor; if (input) newAnchor = new VFXParameterInputDataAnchorController(slot, this, hidden); else newAnchor = new VFXParameterOutputDataAnchorController(slot, this, hidden); newAnchor.portType = slot.property.type; return newAnchor; }