TrySetDefaultRotation(StringHash, quaternion)
Sets the default value of the rotation channel that has an identifier.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
public bool TrySetDefaultRotation(StringHash id, quaternion rotation)
Parameters
Returns
Type | Description |
|---|---|
| bool | True if the builder has a rotation 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 rotation of a bone, use RigBuilder.TrySetBoneDefaultRotation.