Documentation

Unity Engine

Download Unity

Unity Engine

TrySetBoneDefaultTranslation(int, float3)

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

Definition

public bool TrySetBoneDefaultTranslation(int boneIndex, float3 translation)

Parameters

boneIndex

The bone index of the node.

translation

The default translation, 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 translation is the SkeletonNode.LocalTranslationDefaultValue of the node. To get the bone index of a node from its identifier, use RigBuilder.GetBoneIndex.