文档

Unity Engine

Unity Engine

ConnectTo

Creates an edge between this port and the 'other' port.
阅读时间1 分钟最后更新于 1 个月前

Definition

ConnectTo(Port)

Creates an edge between this port and the 'other' port.
public Edge ConnectTo(Port other)

Parameters

other

Other port to connect to.

Returns

Type

Description

EdgeNewly created edge.

Remarks

The new edge still needs to be added to the graph.

ConnectTo<T>(Port)

Creates an edge between this port and the 'other' port.
public T ConnectTo<T>(Port other) where T : Edge, new()

Parameters

other

Other port to connect to.

Returns

Type

Description

TNewly created edge.

Remarks

The new edge still needs to be added to the graph.