Version: 2021.3

BlendTree.CreateBlendTreeChild

切换到手册
public Animations.BlendTree CreateBlendTreeChild (float threshold);
public Animations.BlendTree CreateBlendTreeChild (Vector2 position);

参数

position 子级的位置。使用 2D 混合树时。
threshold 子级的阈值。使用 1D 混合树时。

描述

Utility 函数,用于向混合树添加一个子混合树。

所创建的混合树资源添加为混合树的子资源。 此函数推动一个 Undo 操作。

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961