TrySetBoneDefaultScale(int, float3)
Sets the default scale of the bone at a bone index.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
public bool TrySetBoneDefaultScale(int boneIndex, float3 scale)
Parameters
Returns
Type | Description |
|---|---|
| bool | True if the builder has a node at the bone index. Otherwise, false, and the builder doesn't change. |
Remarks
The default scale is the SkeletonNode.LocalScaleDefaultValue of the node. To get the bone index of a node from its identifier, use RigBuilder.GetBoneIndex.