Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ConnectInput

Connect the output port of a Playable to one of the input ports.
Read time 1 minuteLast updated 6 days ago

Definition

ConnectInput<T, U>(T, int, T, int)

Connect the output port of a Playable to one of the input ports.
public static void ConnectInput<U, V>(this U playable, int inputIndex, V sourcePlayable, int sourceOutputIndex) where U : struct, IPlayable where V : struct, IPlayable

Parameters

playable

T
The Playable used by this operation.

inputIndex

The input port index.

sourcePlayable

T
The Playable to connect to.

sourceOutputIndex

The output port of the Playable.

Remarks

This method is a simple helper on top of PlayableGraph.Connect.
Use this templated extension method on any type that inherits from IPlayable.

ConnectInput<T, U>(T, int, T, int, float)

Connect the output port of a Playable to one of the input ports.
public static void ConnectInput<U, V>(this U playable, int inputIndex, V sourcePlayable, int sourceOutputIndex, float weight) where U : struct, IPlayable where V : struct, IPlayable

Parameters

playable

T
The Playable used by this operation.

inputIndex

The input port index.

sourcePlayable

T
The Playable to connect to.

sourceOutputIndex

The output port of the Playable.

weight

The weight of the input port.

Remarks

This method is a simple helper on top of PlayableGraph.Connect.
Use this templated extension method on any type that inherits from IPlayable.