TrySetDefaultTranslation(StringHash, float3)
Sets the default value of the translation channel that has an identifier.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
public bool TrySetDefaultTranslation(StringHash id, float3 translation)
Parameters
Returns
Type | Description |
|---|---|
| bool | True 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.