文档

Unity Engine

Unity Engine

SetQuaternion

Sets the value of a quaternion parameter.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AnimationModule

SetQuaternion(string, Quaternion)

Sets the value of a quaternion parameter.
警告
Deprecated. SetQuaternion is deprecated.
public void SetQuaternion(string name, Quaternion value)

Parameters

name

The name of the parameter.

The new value for the parameter.

SetQuaternion(int, Quaternion)

Sets the value of a quaternion parameter.
警告
Deprecated. SetQuaternion is deprecated.
public void SetQuaternion(int id, Quaternion value)

Parameters

id

Of the parameter. The id is generated using Animator::StringToHash.

The new value for the parameter.