Class SteamVR_Action_Vector3
Inheritance
Inherited Members
Namespace: Valve.VR
Assembly: Assembly-CSharp.dll
Syntax
[Serializable]
public class SteamVR_Action_Vector3 : SteamVR_Action_In<SteamVR_Action_Vector3_Source_Map, SteamVR_Action_Vector3_Source>, IEquatable<SteamVR_Action>, ISteamVR_Action_In, ISteamVR_Action, ISteamVR_Action_Vector3, ISteamVR_Action_In_Source, ISteamVR_Action_Source, ISerializationCallbackReceiver
Constructors
SteamVR_Action_Vector3()
Declaration
public SteamVR_Action_Vector3()
Properties
axis
[Shortcut to: SteamVR_Input_Sources.Any] The current Vector3 value of the action. Note: Will only return non-zero if the action is also active.
Declaration
public Vector3 axis { get; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
delta
[Shortcut to: SteamVR_Input_Sources.Any] The Vector3 value difference between this update and the previous update. Note: Will only return non-zero if the action is also active.
Declaration
public Vector3 delta { get; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
lastAxis
[Shortcut to: SteamVR_Input_Sources.Any] The Vector3 value of the action from the previous update. Note: Will only return non-zero if the action is also active.
Declaration
public Vector3 lastAxis { get; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
lastDelta
[Shortcut to: SteamVR_Input_Sources.Any] The Vector3 value difference between the previous update and update before that. Note: Will only return non-zero if the action is also active.
Declaration
public Vector3 lastDelta { get; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
Methods
AddOnActiveBindingChangeListener(SteamVR_Action_Vector3.ActiveChangeHandler, SteamVR_Input_Sources)
Executes a function when the active state of this action (with the specified inputSource) changes. This happens when the action is bound or unbound
Declaration
public void AddOnActiveBindingChangeListener(SteamVR_Action_Vector3.ActiveChangeHandler functionToCall, SteamVR_Input_Sources inputSource)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Action_Vector3.ActiveChangeHandler | functionToCall | A local function that receives the boolean action who's active state changes and the corresponding input source |
SteamVR_Input_Sources | inputSource | The device you would like to get data from. Any if the action is not device specific. |
AddOnActiveChangeListener(SteamVR_Action_Vector3.ActiveChangeHandler, SteamVR_Input_Sources)
Executes a function when the functional active state of this action (with the specified inputSource) changes. This happens when the action is bound or unbound, or when the ActionSet changes state.
Declaration
public void AddOnActiveChangeListener(SteamVR_Action_Vector3.ActiveChangeHandler functionToCall, SteamVR_Input_Sources inputSource)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Action_Vector3.ActiveChangeHandler | functionToCall | A local function that receives the boolean action who's active state changes and the corresponding input source |
SteamVR_Input_Sources | inputSource | The device you would like to get data from. Any if the action is not device specific. |
AddOnAxisListener(SteamVR_Action_Vector3.AxisHandler, SteamVR_Input_Sources)
Executes a function when the Vector3 value of the action is non-zero.
Declaration
public void AddOnAxisListener(SteamVR_Action_Vector3.AxisHandler functionToCall, SteamVR_Input_Sources inputSource)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Action_Vector3.AxisHandler | functionToCall | A local function that receives the boolean action who's state has changed, the corresponding input source, and the new value |
SteamVR_Input_Sources | inputSource | The device you would like to get data from. Any if the action is not device specific. |
AddOnChangeListener(SteamVR_Action_Vector3.ChangeHandler, SteamVR_Input_Sources)
Executes a function when the axis changes by more than the specified changeTolerance
Declaration
public void AddOnChangeListener(SteamVR_Action_Vector3.ChangeHandler functionToCall, SteamVR_Input_Sources inputSource)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Action_Vector3.ChangeHandler | functionToCall | A local function that receives the boolean action who's state has changed, the corresponding input source, and the new value |
SteamVR_Input_Sources | inputSource | The device you would like to get data from. Any if the action is not device specific. |
AddOnUpdateListener(SteamVR_Action_Vector3.UpdateHandler, SteamVR_Input_Sources)
Executes a function when the state of this action (with the specified inputSource) is updated.
Declaration
public void AddOnUpdateListener(SteamVR_Action_Vector3.UpdateHandler functionToCall, SteamVR_Input_Sources inputSource)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Action_Vector3.UpdateHandler | functionToCall | A local function that receives the boolean action who's state has changed, the corresponding input source, and the new value |
SteamVR_Input_Sources | inputSource | The device you would like to get data from. Any if the action is not device specific. |
GetAxis(SteamVR_Input_Sources)
The current Vector3 value of the action
Declaration
public Vector3 GetAxis(SteamVR_Input_Sources inputSource)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Input_Sources | inputSource | The device you would like to get data from. Any if the action is not device specific. |
Returns
Type | Description |
---|---|
UnityEngine.Vector3 |
GetAxisDelta(SteamVR_Input_Sources)
The Vector3 value difference between this update and the previous update.
Declaration
public Vector3 GetAxisDelta(SteamVR_Input_Sources inputSource)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Input_Sources | inputSource | The device you would like to get data from. Any if the action is not device specific. |
Returns
Type | Description |
---|---|
UnityEngine.Vector3 |
GetLastAxis(SteamVR_Input_Sources)
The Vector3 value of the action from the previous update.
Declaration
public Vector3 GetLastAxis(SteamVR_Input_Sources inputSource)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Input_Sources | inputSource | The device you would like to get data from. Any if the action is not device specific. |
Returns
Type | Description |
---|---|
UnityEngine.Vector3 |
GetLastAxisDelta(SteamVR_Input_Sources)
The Vector3 value difference between the previous update and update before that.
Declaration
public Vector3 GetLastAxisDelta(SteamVR_Input_Sources inputSource)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Input_Sources | inputSource | The device you would like to get data from. Any if the action is not device specific. |
Returns
Type | Description |
---|---|
UnityEngine.Vector3 |
RemoveOnActiveBindingChangeListener(SteamVR_Action_Vector3.ActiveChangeHandler, SteamVR_Input_Sources)
Stops executing the function setup by the corresponding AddListener
Declaration
public void RemoveOnActiveBindingChangeListener(SteamVR_Action_Vector3.ActiveChangeHandler functionToStopCalling, SteamVR_Input_Sources inputSource)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Action_Vector3.ActiveChangeHandler | functionToStopCalling | The local function that you've setup to receive update events |
SteamVR_Input_Sources | inputSource | The device you would like to get data from. Any if the action is not device specific. |
RemoveOnActiveChangeListener(SteamVR_Action_Vector3.ActiveChangeHandler, SteamVR_Input_Sources)
Stops executing a function when the functional active state of this action (with the specified inputSource) changes. This happens when the action is bound or unbound, or when the ActionSet changes state.
Declaration
public void RemoveOnActiveChangeListener(SteamVR_Action_Vector3.ActiveChangeHandler functionToStopCalling, SteamVR_Input_Sources inputSource)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Action_Vector3.ActiveChangeHandler | functionToStopCalling | The local function that you've setup to receive update events |
SteamVR_Input_Sources | inputSource | The device you would like to get data from. Any if the action is not device specific. |
RemoveOnAxisListener(SteamVR_Action_Vector3.AxisHandler, SteamVR_Input_Sources)
Stops executing the function setup by the corresponding AddListener
Declaration
public void RemoveOnAxisListener(SteamVR_Action_Vector3.AxisHandler functionToStopCalling, SteamVR_Input_Sources inputSource)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Action_Vector3.AxisHandler | functionToStopCalling | The local function that you've setup to receive update events |
SteamVR_Input_Sources | inputSource | The device you would like to get data from. Any if the action is not device specific. |
RemoveOnChangeListener(SteamVR_Action_Vector3.ChangeHandler, SteamVR_Input_Sources)
Stops executing the function setup by the corresponding AddListener
Declaration
public void RemoveOnChangeListener(SteamVR_Action_Vector3.ChangeHandler functionToStopCalling, SteamVR_Input_Sources inputSource)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Action_Vector3.ChangeHandler | functionToStopCalling | The local function that you've setup to receive on change events |
SteamVR_Input_Sources | inputSource | The device you would like to get data from. Any if the action is not device specific. |
RemoveOnUpdateListener(SteamVR_Action_Vector3.UpdateHandler, SteamVR_Input_Sources)
Stops executing the function setup by the corresponding AddListener
Declaration
public void RemoveOnUpdateListener(SteamVR_Action_Vector3.UpdateHandler functionToStopCalling, SteamVR_Input_Sources inputSource)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Action_Vector3.UpdateHandler | functionToStopCalling | The local function that you've setup to receive update events |
SteamVR_Input_Sources | inputSource | The device you would like to get data from. Any if the action is not device specific. |
Events
onActiveBindingChange
[Shortcut to: SteamVR_Input_Sources.Any] Event fires when the active state of the binding changes
Declaration
public event SteamVR_Action_Vector3.ActiveChangeHandler onActiveBindingChange
Event Type
Type | Description |
---|---|
SteamVR_Action_Vector3.ActiveChangeHandler |
onActiveChange
[Shortcut to: SteamVR_Input_Sources.Any] Event fires when the active state (ActionSet active and binding active) changes
Declaration
public event SteamVR_Action_Vector3.ActiveChangeHandler onActiveChange
Event Type
Type | Description |
---|---|
SteamVR_Action_Vector3.ActiveChangeHandler |
onAxis
[Shortcut to: SteamVR_Input_Sources.Any] This event will fire whenever the Vector3 value of the action is non-zero
Declaration
public event SteamVR_Action_Vector3.AxisHandler onAxis
Event Type
Type | Description |
---|---|
SteamVR_Action_Vector3.AxisHandler |
onChange
[Shortcut to: SteamVR_Input_Sources.Any] This event fires whenever the axis changes by more than the specified changeTolerance
Declaration
public event SteamVR_Action_Vector3.ChangeHandler onChange
Event Type
Type | Description |
---|---|
SteamVR_Action_Vector3.ChangeHandler |
onUpdate
[Shortcut to: SteamVR_Input_Sources.Any] This event fires whenever the action is updated
Declaration
public event SteamVR_Action_Vector3.UpdateHandler onUpdate
Event Type
Type | Description |
---|---|
SteamVR_Action_Vector3.UpdateHandler |
Explicit Interface Implementations
ISerializationCallbackReceiver.OnAfterDeserialize()
Declaration
void ISerializationCallbackReceiver.OnAfterDeserialize()
ISerializationCallbackReceiver.OnBeforeSerialize()
Declaration
void ISerializationCallbackReceiver.OnBeforeSerialize()