GetLocalToCharacterScale(int)
Returns the local to character scale of the bone at the specified index.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
public readonly float3 GetLocalToCharacterScale(int index)
Parameters
The index of the bone in Skeleton.Ids, for example from Skeleton.FindBoneIndex.
Returns
Type | Description |
|---|---|
| float3 | The local to character scale. |
Remarks
The index must be at least 0 and less than AnimationStream.BoneCount.
When a bone above this bone has a non-uniform scale, the scale in character space is an approximation. The combined transform shears, and a scale can't represent a shear. To get the exact transform, use AnimationStream.GetLocalToCharacterMatrix.