Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetVector

Gets the value of a vector parameter.
Read time 1 minuteLast updated 4 days ago

Definition

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

GetVector(string)

Gets the value of a vector parameter.
Warning
Deprecated. GetVector is deprecated.
public Vector3 GetVector(string name)

Parameters

name

The name of the parameter.

Returns

Type

Description

Vector3

GetVector(int)

Gets the value of a vector parameter.
Warning
Deprecated. GetVector is deprecated.
public Vector3 GetVector(int id)

Parameters

id

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

Returns

Type

Description

Vector3