Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetVector

Sets the value of a vector parameter.
Read time 1 minuteLast updated 5 days ago

Definition

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

SetVector(string, Vector3)

Sets the value of a vector parameter.
Warning
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.
Warning
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.