PlayableExtensions.AddInput

声明

public static int AddInput(U playable, V sourcePlayable, int sourceOutputIndex, float weight);

参数

playable 此操作使用的 Playable
sourcePlayable 要连接的 Playable
sourceOutputIndex 的输出端口 Playable
weight 创建的输入端口的权重。

返回值

int 新创建的输入端口的索引。

说明

创建一个新输入端口并将其连接到指定 Playable 的输出端口。

如果需要多个输入,最好使用 SetInputCountConnectInput
此方法是 PlayableGraph.Connect 的一个简单的辅助方法。

对继承自 IPlayable 的任何类型使用此模板化扩展方法。


Did you find this page useful? Please give it a rating: