Version: 2023.2
public static Animations.AnimationLayerMixerPlayable Create (Playables.PlayableGraph graph, int inputCount, bool singleLayerOptimization);

参数

graph 将包含新 AnimationLayerMixerPlayablePlayableGraph
inputCount 层的数量。
singleLayerOptimization This optimization automatically sets the weight of the first animation layer to 1. Set to true If your layer mixer has a single animation layer and you want to bypass unnecessary weight calculations. This optimization is automatically set to false if your layer mixer has multiple animation layers.

返回

AnimationLayerMixerPlayable 链接到 PlayableGraph 的新 AnimationLayerMixerPlayable

描述

PlayableGraph 中创建 AnimationLayerMixerPlayable