文档

Unity Engine

Unity Engine

SetVector

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

Definition

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

SetVector(string, Vector3)

Sets the value of a vector parameter.
警告
Deprecated. SetVector is deprecated.
public void SetVector(string name, Vector3 value)

Parameters

name

The name of the parameter.

value

The new value for the parameter.

SetVector(int, Vector3)

Sets the value of a vector parameter.
警告
Deprecated. SetVector is deprecated.
public void SetVector(int id, Vector3 value)

Parameters

id

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

value

The new value for the parameter.