Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Connect(IPort, IPort)

Creates a wire connection between two ports.
Read time 1 minuteLast updated 10 days ago

Definition

public bool Connect(IPort output, IPort input)

Parameters

output

The output port to connect from.

input

The input port to connect to.

Returns

Type

Description

booltrue if the connection was created; false if the connection already existed.

Remarks

Enclose this method with Graph.UndoBeginRecordGraph and Graph.UndoEndRecordGraph to add this operation to the undo stack and to update the graph view with the changes.