TrySetBoneDefaultRotation(int, quaternion)
Sets the default rotation 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 TrySetBoneDefaultRotation(int boneIndex, quaternion rotation)
Parameters
The bone index of the node.
The default rotation, relative to the parent bone.
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 rotation is the SkeletonNode.LocalRotationDefaultValue of the node. To get the bone index of a node from its identifier, use RigBuilder.GetBoneIndex.