文档

Unity Engine

Unity Engine

GetWire(IPort, IPort)

Gets the representation of the wire between an output port and an input port in the graph, if such a connection exists.
阅读时间1 分钟最后更新于 1 个月前

Definition

public Wire GetWire(IPort output, IPort input)

Parameters

output

The output port at the start of the connection.

input

The input port at the end of the connection.

Returns

Type

Description

WireA Wire when the ports are connected (including through portals); otherwise
null
.