Documentation

Unity Engine

Download Unity

Unity Engine

TrySetBoneDefaultScale(int, float3)

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

Definition

public bool TrySetBoneDefaultScale(int boneIndex, float3 scale)

Parameters

boneIndex

The bone index of the node.

scale

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