Version: 2021.2
public static void ConnectInput (U playable, int inputIndex, V sourcePlayable, int sourceOutputIndex, float weight);

参数

playable 此操作所用的 Playable
inputIndex 输入端口索引。
sourcePlayable 要连接到的 Playable
sourceOutputIndex Playable 的输出端口。
weight 输入端口的权重。

描述

Playable 的输出端口连接到其中一个输入端口。

此方法只是 PlayableGraph.Connect 的 helper 方法。

Use this templated extension method on any type that inherits from IPlayable.