Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Obsolete
SetQuaternion is deprecated.

Animator.SetQuaternion

Switch to Manual
public function SetQuaternion(name: string, value: Quaternion): void;

Parameters

nameThe name of the parameter.
valueThe new value for the parameter.

Description

Sets the value of a quaternion parameter.


public function SetQuaternion(id: int, value: Quaternion): void;

Parameters

idOf the parameter. The id is generated using Animator::StringToHash.
valueThe new value for the parameter.

Description

Sets the value of a quaternion parameter.