protected override VFXDataAnchorController AddDataAnchor(VFXSlot slot, bool input, bool hidden)
        {
            var anchor = new VFXParameterOutputDataAnchorController(slot, this, hidden);

            anchor.portType = slot.property.type;
            return(anchor);
        }
示例#2
0
        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;
        }