ドキュメント

Unity Engine

Unity Engine

CreateBlendTreeInController

Creates a BlendTree in a new AnimatorState.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

CreateBlendTreeInController(string, BlendTree)

Creates a BlendTree in a new AnimatorState.
public AnimatorState CreateBlendTreeInController(string name, out BlendTree tree)

Parameters

name

The name of the BlendTree.

The created BlendTree.

Returns

Type

Description

AnimatorState

Remarks

The BlendTree will be a sub asset of the AnimatorController. This function pushes an Undo operation.

CreateBlendTreeInController(string, BlendTree, int)

Creates a BlendTree in a new AnimatorState.
public AnimatorState CreateBlendTreeInController(string name, out BlendTree tree, int layerIndex)

Parameters

name

The name of the BlendTree.

The created BlendTree.

layerIndex

The index where the BlendTree will be created.

Returns

Type

Description

AnimatorState

Remarks

The BlendTree will be a sub asset of the AnimatorController. This function pushes an Undo operation.