Version: 2022.3

AnimatorController.CreateBlendTreeInController

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

参数

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

描述

在新 AnimatorState 中创建一个 BlendTree。

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


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