///---------------------------------------------------------------------------------------------- public static void Finalize(FlowNode node, Port sourcePort, object dropInstance) { FinalizeConnection(sourcePort, node); DropInstance(node, dropInstance); Select(node); }
//... static void Select(FlowNode targetNode) { GraphEditorUtility.activeElement = targetNode; }
///Creates a generic instance of ValueOutput public static ValueOutput <T> CreateInstance <T>(FlowNode parent, string name, string ID, ValueHandler <T> getter) { return(new ValueOutput <T>(parent, name, ID, getter)); }
///Creates a generic instance of ValueOutput public static ValueOutput CreateInstance(Type t, FlowNode parent, string name, string ID, ValueHandlerObject getter) { return((ValueOutput)Activator.CreateInstance(typeof(ValueOutput <>).RTMakeGenericType(t), new object[] { parent, name, ID, getter })); }
public ValueOutput(FlowNode parent, string name, string ID) : base(parent, name, ID) { }
///Creates a generic instance of ValueInput public static ValueInput CreateInstance(Type t, FlowNode parent, string name, string ID) { return((ValueInput)Activator.CreateInstance(typeof(ValueInput <>).RTMakeGenericType(t), new object[] { parent, name, ID })); }
///Creates a generic instance of ValueInput public static ValueInput <T> CreateInstance <T>(FlowNode parent, string name, string ID) { return(new ValueInput <T>(parent, name, ID)); }
///pointer refers to callback when the port is called public FlowInput(FlowNode parent, string name, string ID, FlowHandler pointer) : base(parent, name, ID) { this.pointer = pointer; }
public Port(FlowNode parent, string name, string ID) { this.parent = parent; this.name = name; this.ID = ID; }