Documentation

Unity Engine

Download Unity

Unity Engine

TrySetBoneDefaultRotation(int, quaternion)

Sets the default rotation of the bone at a bone index.
Read time 1 minuteLast updated 4 hours ago

Definition

public bool TrySetBoneDefaultRotation(int boneIndex, quaternion rotation)

Parameters

boneIndex

The bone index of the node.

rotation

The default rotation, relative to the parent bone.

Returns

Type

Description

boolTrue 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.