Documentation

Unity Engine

Download Unity

Unity Engine

TrySetDefaultScale(StringHash, float3)

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

Definition

public bool TrySetDefaultScale(StringHash id, float3 scale)

Parameters

The identifier of the channel.

scale

The default scale of the channel.

Returns

Type

Description

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