Experimental: this API is experimental and might be changed or removed in the future.

Switch to Manual

Parameters

graph将拥有 MaterialEffectPlayablePlayableGraph 对象。
material用于修改链接纹理可播放输入的 Material
pass着色器通道索引。(注意:所有通道均为 -1)。

Returns

MaterialEffectPlayable 链接到 PlayableGraphMaterialEffectPlayable

Description

PlayableGraph 中创建 MaterialEffectPlayable

注意:每个 MaterialEffectPlayable 输入均连接到所选材质的纹理属性(即纹理输入 0 连接到材质的第一个纹理属性,纹理输入 1 连接到材质的第二个纹理属性,以此类推)。