File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 223223 keep_alive: bool
224224 }
225225 [/codeblock]
226+ [b]Example:[/b] Get all connections on a specific port:
227+ [codeblock]
228+ func get_connection_list_from_port(node, port):
229+ var connections = get_connection_list_from_node(node)
230+ var result = []
231+ for connection in connections:
232+ var dict = {}
233+ if connection["from_node"] == node and connection["from_port"] == port:
234+ dict["node"] = connection["to_node"]
235+ dict["port"] = connection["to_port"]
236+ dict["type"] = "left"
237+ result.push_back(dict)
238+ elif connection["to_node"] == node and connection["to_port"] == port:
239+ dict["node"] = connection["from_node"]
240+ dict["port"] = connection["from_port"]
241+ dict["type"] = "right"
242+ result.push_back(dict)
243+ return result
244+ [/codeblock]
226245 </description >
227246 </method >
228247 <method name =" get_connections_intersecting_with_rect" qualifiers =" const" >
You can’t perform that action at this time.
0 commit comments