Version: 2017.1
public static void AddInput (U playable, V sourcePlayable, int sourceOutputIndex);

参数

playable 此操作所用的 Playable
sourcePlayable 要连接到的 Playable
sourceOutputIndex Playable 的输出端口。

描述

Add a new input port and connect the output port of a Playable to this new port.

If several inputs are needed, it is better to use SetInputCount and ConnectInput.
This method is a simple helper on top of PlayableGraph.Connect.

注意:这是一种模板化扩展方法,适用于继承自 IPlayable 的任何类型。