Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

Graph.GetWire

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public Wire GetWire(IPort output, IPort input);

Parameters

Parameter Description
output The output port at the start of the connection.
input The input port at the end of the connection.

Returns

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

Description

Returns the logical wire between an output port and an input port, if such a connection exists.

When multiple portal-backed paths could match the same port pair, the first match from the graph's virtual wire resolution is returned.