GetEntityIdWeight(int)
Returns the weight of the specified entity ID channel.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
public readonly float GetEntityIdWeight(int index)
Parameters
The index of the entity ID channel to read the weight of.
Returns
Type | Description |
|---|---|
| float | The 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.