Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CreateBlendTreeInController

Creates a BlendTree in a new AnimatorState.
Read time 1 minuteLast updated 11 days ago

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.