protected override void RegisterPorts() { base.RegisterPorts(); rootIn = AddValueInput <Transform>("root", DefaultValue.This); nameIn = AddValueInput <string>("name"); resultOut = AddValueOutput <Transform>(Type_Transform); }
public void BreakValuePort(ValuePort input) { if (input.LinkOutput != null) { input.LinkOutput = null; } }
protected override void RegisterPorts() { condition = AddValueInput <bool>("Condition"); trueOut = AddFlowOutput("True"); falseOut = AddFlowOutput("False"); AddFlowInput(FLOW_IN); }
protected override void RegisterPorts() { AddFlowInput(FLOW_IN); AddFlowOutput("done"); AddFlowOutput("tick"); timeIn = AddValueInput <float>("time"); deltaIn = AddValueInput <float>("delta", DefaultValue.DeltaTime); elapsedOut = AddValueOutput <float>("elapsed"); }
protected override void RegisterPorts() { base.RegisterPorts(); PropertyInfo property = Property; if (property != null) { valueIn = AddValueInput(GetValueTypeName(property.PropertyType), property.PropertyType); } }
protected override void RegisterPorts() { base.RegisterPorts(); FieldInfo field = Field; if (field != null) { valueOut = AddValueOutput(VALUE, field.FieldType); } }
protected override void RegisterPorts() { base.RegisterPorts(); FieldInfo field = Field; if (field != null) { valueIn = AddValueInput(GetValueTypeName(field.FieldType), field.FieldType); } }
protected ValuePort <T> AddValueInput <T>(string name, IDefaultValue defaultValue = null) { ValuePort <T> port = new ValuePort <T>(this, name, defaultValue); if (valueInputs == null) { valueInputs = new List <ValuePort>(); } valueInputs.Add(port); return(port); }
protected override void RegisterPorts() { base.RegisterPorts(); PropertyInfo property = Property; if (property != null) { var getter = property.GetGetMethod(); valueOut = AddValueOutput(GetValueTypeName(property.PropertyType), property.PropertyType); } }
protected ValuePort <T> AddValueOutput <T>(string name) { ValuePort <T> port = new ValuePort <T>(this, name); if (valueOutputs == null) { valueOutputs = new List <ValuePort>(); } valueOutputs.Add(port); return(port); }
protected override void RegisterPorts() { base.RegisterPorts(); FieldInfo field = Field; if (field != null) { if (!field.IsStatic) { thisIn = AddValueInput(THIS, field.DeclaringType, GetDefaultInject(field.DeclaringType)); } } }
protected override void RegisterPorts() { base.RegisterPorts(); EventInfo evt = Event; if (evt != null) { if (!IsStatic) { thisIn = AddValueInput(THIS, evt.DeclaringType); } } }
protected override void RegisterPorts() { base.RegisterPorts(); PropertyInfo property = Property; if (property != null) { if (!IsStatic) { thisIn = AddValueInput(THIS, property.DeclaringType, GetDefaultInject(property.DeclaringType)); } } }
protected override void RegisterPorts() { base.RegisterPorts(); objectIn = AddValueInput <Object>(Type_UnityObject); delayIn = AddValueInput <float>("delay"); }
protected override void RegisterPorts() { base.RegisterPorts(); componentIn = AddValueInput <Component>(Type_Component); }
protected override void RegisterPorts() { base.RegisterPorts(); thisIn = AddValueInput <object>(THIS); valueIn = AddValueInput <object>(VALUE); }
protected override void RegisterPorts() { base.RegisterPorts(); gameObjectIn = AddValueInput <GameObject>(Type_GameObject); }