Documentation

Unity Engine

Download Unity

Unity Engine

TrySetDefaultTranslation(StringHash, float3)

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

Definition

public bool TrySetDefaultTranslation(StringHash id, float3 translation)

Parameters

The identifier of the channel.

translation

The default translation of the channel.

Returns

Type

Description

boolTrue if the builder has a translation 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 translation of a bone, use RigBuilder.TrySetBoneDefaultTranslation.