Class SteamVR_Behaviour_Vector2
Simplifies the use of the Vector2 action. Provides an onChange event that fires whenever the vector2 changes.
Inheritance
Inherited Members
Namespace: Valve.VR
Assembly: Assembly-CSharp.dll
Syntax
public class SteamVR_Behaviour_Vector2 : MonoBehaviour
  Fields
inputSource
The device this action applies to. Any if the action is not device specific.
Declaration
[Tooltip("The device this action should apply to. Any if the action is not device specific.")]
public SteamVR_Input_Sources inputSource
  Field Value
| Type | Description | 
|---|---|
| SteamVR_Input_Sources | 
onAxis
Unity event that fires whenever the action's value has been updated and is non-zero
Declaration
[Tooltip("Fires whenever the action's value has been updated and is non-zero.")]
public SteamVR_Behaviour_Vector2Event onAxis
  Field Value
| Type | Description | 
|---|---|
| SteamVR_Behaviour_Vector2Event | 
onAxisEvent
C# event that fires whenever the action's value has been updated and is non-zero
Declaration
public SteamVR_Behaviour_Vector2.AxisHandler onAxisEvent
  Field Value
| Type | Description | 
|---|---|
| SteamVR_Behaviour_Vector2.AxisHandler | 
onChange
Unity event that fires whenever the action's value has changed since the last update.
Declaration
[Tooltip("Fires whenever the action's value has changed since the last update.")]
public SteamVR_Behaviour_Vector2Event onChange
  Field Value
| Type | Description | 
|---|---|
| SteamVR_Behaviour_Vector2Event | 
onChangeEvent
C# event that fires whenever the action's value has changed since the last update.
Declaration
public SteamVR_Behaviour_Vector2.ChangeHandler onChangeEvent
  Field Value
| Type | Description | 
|---|---|
| SteamVR_Behaviour_Vector2.ChangeHandler | 
onUpdate
Unity event that fires whenever the action's value has been updated
Declaration
[Tooltip("Fires whenever the action's value has been updated.")]
public SteamVR_Behaviour_Vector2Event onUpdate
  Field Value
| Type | Description | 
|---|---|
| SteamVR_Behaviour_Vector2Event | 
onUpdateEvent
C# event that fires whenever the action's value has been updated
Declaration
public SteamVR_Behaviour_Vector2.UpdateHandler onUpdateEvent
  Field Value
| Type | Description | 
|---|---|
| SteamVR_Behaviour_Vector2.UpdateHandler | 
vector2Action
The vector2 action to get data from
Declaration
public SteamVR_Action_Vector2 vector2Action
  Field Value
| Type | Description | 
|---|---|
| SteamVR_Action_Vector2 | 
Properties
isActive
Returns whether this action is bound and the action set is active
Declaration
public bool isActive { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Methods
AddHandlers()
Declaration
protected void AddHandlers()
  GetLocalizedName(EVRInputStringBits[])
Gets the localized name of the device that the action corresponds to.
Declaration
public string GetLocalizedName(params EVRInputStringBits[] localizedParts)
  Parameters
| Type | Name | Description | 
|---|---|---|
| EVRInputStringBits[] | localizedParts | 
  | 
      
Returns
| Type | Description | 
|---|---|
| System.String | 
OnDisable()
Declaration
protected virtual void OnDisable()
  OnEnable()
Declaration
protected virtual void OnEnable()
  RemoveHandlers()
Declaration
protected void RemoveHandlers()