Documentation

Unity Engine

Download Unity

Unity Engine

GetEntityIdWeight(int)

Returns the weight of the specified entity ID channel.
Read time 1 minuteLast updated 4 hours ago

Definition

public readonly float GetEntityIdWeight(int index)

Parameters

index

The index of the entity ID channel to read the weight of.

Returns

Type

Description

floatThe weight of the entity ID channel, from 0 to 1.

Remarks

The index must be at least 0 and less than AnimationStreamMask.EntityIdCount. Weights that you set with AnimationStreamMask.SetEntityIdWeight range from 0 to 1.