Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetWireReference(Hash128, Hash128)

Returns a WireReference that identifies the node with the given ID within this visualization context.
Read time 1 minuteLast updated 6 days ago

Definition

public WireReference GetWireReference(Hash128 outputPortID, Hash128 inputPortID)

Parameters

outputPortID

The unique identifier of the output port at the start of the connection.

inputPortID

The unique identifier of the input port at the end of the connection.

Returns

Type

Description

WireReferenceA WireReference that targets the wire identified by
outputPortID
and
inputPortID
within this Context.

Remarks

The returned WireReference is only meaningful for this Context and references the wire by its port IDs rather than by direct lookup. The wire does not need to exist in the current graph canvas at the time of this call. Throws ObjectDisposedException when you access this property after you call Context.Dispose on the context. Throws ArgumentException when you provide an invalid
outputPortID
or
inputPortID
.

Examples

WireReference wireRef = context.GetWireReference(outputPortID, inputPortID);wireRef.IsDashed = true;