Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CreateBlendTreeChild

Utility function to add a child blend tree to a blend tree.
Read time 1 minuteLast updated 10 days ago

Definition

CreateBlendTreeChild(float)

Utility function to add a child blend tree to a blend tree.
public BlendTree CreateBlendTreeChild(float threshold)

Parameters

threshold

The threshold of the child. When using 1D blend trees.

Returns

Type

Description

BlendTree

Remarks

The blend tree asset that is created is added as a sub asset of the blend tree. This function pushes an Undo operation.

CreateBlendTreeChild(Vector2)

Utility function to add a child blend tree to a blend tree.
public BlendTree CreateBlendTreeChild(Vector2 position)

Parameters

position

The position of the child. When using 2D blend trees.

Returns

Type

Description

BlendTree

Remarks

The blend tree asset that is created is added as a sub asset of the blend tree. This function pushes an Undo operation.