AnimatorController.CreateBlendTreeInController

切换到手册
public Animations.AnimatorState CreateBlendTreeInController (string name, out Animations.BlendTree tree);
public Animations.AnimatorState CreateBlendTreeInController (string name, out Animations.BlendTree tree, int layerIndex);

参数

nameBlendTree 的名称。
tree创建的 BlendTree。
layerIndex用于创建 BlendTree 的索引。

描述

在新 AnimatorState 中创建一个 BlendTree。

BlendTree 将成为 AnimatorController 的子资源。 此函数推动一个 Undo 操作。