示例#1
0
        ///----------------------------------------------------------------------------------------------

        public static void Finalize(FlowNode node, Port sourcePort, object dropInstance)
        {
            FinalizeConnection(sourcePort, node);
            DropInstance(node, dropInstance);
            Select(node);
        }
示例#2
0
 //...
 static void Select(FlowNode targetNode)
 {
     GraphEditorUtility.activeElement = targetNode;
 }
示例#3
0
 ///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));
 }
示例#4
0
 ///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 }));
 }
示例#5
0
 public ValueOutput(FlowNode parent, string name, string ID) : base(parent, name, ID)
 {
 }
示例#6
0
 ///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 }));
 }
示例#7
0
 ///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));
 }
示例#8
0
 ///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;
 }
示例#9
0
 public Port(FlowNode parent, string name, string ID)
 {
     this.parent = parent;
     this.name   = name;
     this.ID     = ID;
 }