Documentation

Unity Engine

Download Unity

Unity Engine

TrySetDefaultRotation(StringHash, quaternion)

Sets the default value of the rotation channel that has an identifier.
Read time 1 minuteLast updated 4 hours ago

Definition

public bool TrySetDefaultRotation(StringHash id, quaternion rotation)

Parameters

The identifier of the channel.

rotation

The default rotation of the channel.

Returns

Type

Description

boolTrue if the builder has a rotation channel with the identifier. Otherwise, false, and the builder doesn't change.

Remarks

The method only searches the channels that you add with RigBuilder.Add. To set the default rotation of a bone, use RigBuilder.TrySetBoneDefaultRotation.