Class SteamVR_Action_Pose
Inheritance
Inherited Members
Namespace: Valve.VR
Assembly: Assembly-CSharp.dll
Syntax
[Serializable]
public class SteamVR_Action_Pose : SteamVR_Action_Pose_Base<SteamVR_Action_Pose_Source_Map<SteamVR_Action_Pose_Source>, SteamVR_Action_Pose_Source>, IEquatable<SteamVR_Action>, ISteamVR_Action_In, ISteamVR_Action, ISteamVR_Action_Pose, ISteamVR_Action_In_Source, ISteamVR_Action_Source, ISerializationCallbackReceiver
Methods
AddOnActiveChangeListener(SteamVR_Input_Sources, SteamVR_Action_Pose.ActiveChangeHandler)
Executes a function when this action's bound state changes
Declaration
public void AddOnActiveChangeListener(SteamVR_Input_Sources inputSource, SteamVR_Action_Pose.ActiveChangeHandler functionToCall)
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. |
SteamVR_Action_Pose.ActiveChangeHandler | functionToCall |
AddOnChangeListener(SteamVR_Input_Sources, SteamVR_Action_Pose.ChangeHandler)
Executes a function when the state of this action (with the specified inputSource) changes
Declaration
public void AddOnChangeListener(SteamVR_Input_Sources inputSource, SteamVR_Action_Pose.ChangeHandler functionToCall)
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. |
SteamVR_Action_Pose.ChangeHandler | functionToCall | A local function that receives the boolean action who's state has changed, the corresponding input source, and the new value |
AddOnDeviceConnectedChanged(SteamVR_Input_Sources, SteamVR_Action_Pose.DeviceConnectedChangeHandler)
Fires an event when a device is connected or disconnected.
Declaration
public void AddOnDeviceConnectedChanged(SteamVR_Input_Sources inputSource, SteamVR_Action_Pose.DeviceConnectedChangeHandler functionToCall)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Input_Sources | inputSource | The device you would like to add an event to. Any if the action is not device specific. |
SteamVR_Action_Pose.DeviceConnectedChangeHandler | functionToCall | The method you would like to be called when a device is connected. Should take a SteamVR_Action_Pose as a param |
AddOnTrackingChanged(SteamVR_Input_Sources, SteamVR_Action_Pose.TrackingChangeHandler)
Fires an event when the tracking of the device has changed
Declaration
public void AddOnTrackingChanged(SteamVR_Input_Sources inputSource, SteamVR_Action_Pose.TrackingChangeHandler functionToCall)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Input_Sources | inputSource | The device you would like to add an event to. Any if the action is not device specific. |
SteamVR_Action_Pose.TrackingChangeHandler | functionToCall | The method you would like to be called when tracking has changed. Should take a SteamVR_Action_Pose as a param |
AddOnUpdateListener(SteamVR_Input_Sources, SteamVR_Action_Pose.UpdateHandler)
Executes a function when the state of this action (with the specified inputSource) is updated.
Declaration
public void AddOnUpdateListener(SteamVR_Input_Sources inputSource, SteamVR_Action_Pose.UpdateHandler functionToCall)
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. |
SteamVR_Action_Pose.UpdateHandler | functionToCall | A local function that receives the boolean action who's state has changed, the corresponding input source, and the new value |
AddOnValidPoseChanged(SteamVR_Input_Sources, SteamVR_Action_Pose.ValidPoseChangeHandler)
Fires an event when the device now has a valid pose or no longer has a valid pose
Declaration
public void AddOnValidPoseChanged(SteamVR_Input_Sources inputSource, SteamVR_Action_Pose.ValidPoseChangeHandler functionToCall)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Input_Sources | inputSource | The device you would like to add an event to. Any if the action is not device specific. |
SteamVR_Action_Pose.ValidPoseChangeHandler | functionToCall | The method you would like to be called when the pose has become valid or invalid. Should take a SteamVR_Action_Pose as a param |
RemoveOnActiveChangeListener(SteamVR_Input_Sources, SteamVR_Action_Pose.ActiveChangeHandler)
Stops executing the function setup by the corresponding AddListener
Declaration
public void RemoveOnActiveChangeListener(SteamVR_Input_Sources inputSource, SteamVR_Action_Pose.ActiveChangeHandler functionToStopCalling)
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. |
SteamVR_Action_Pose.ActiveChangeHandler | functionToStopCalling | The local function that you've setup to receive update events |
RemoveOnChangeListener(SteamVR_Input_Sources, SteamVR_Action_Pose.ChangeHandler)
Stops executing the function setup by the corresponding AddListener
Declaration
public void RemoveOnChangeListener(SteamVR_Input_Sources inputSource, SteamVR_Action_Pose.ChangeHandler functionToStopCalling)
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. |
SteamVR_Action_Pose.ChangeHandler | functionToStopCalling | The local function that you've setup to receive on change events |
RemoveOnDeviceConnectedChanged(SteamVR_Input_Sources, SteamVR_Action_Pose.DeviceConnectedChangeHandler)
Stops executing the function setup by the corresponding AddListener
Declaration
public void RemoveOnDeviceConnectedChanged(SteamVR_Input_Sources inputSource, SteamVR_Action_Pose.DeviceConnectedChangeHandler functionToStopCalling)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Input_Sources | inputSource | The device you would like to remove an event from. Any if the action is not device specific. |
SteamVR_Action_Pose.DeviceConnectedChangeHandler | functionToStopCalling | The method you would like to stop calling when a device is connected. Should take a SteamVR_Action_Pose as a param |
RemoveOnTrackingChanged(SteamVR_Input_Sources, SteamVR_Action_Pose.TrackingChangeHandler)
Stops executing the function setup by the corresponding AddListener
Declaration
public void RemoveOnTrackingChanged(SteamVR_Input_Sources inputSource, SteamVR_Action_Pose.TrackingChangeHandler functionToStopCalling)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Input_Sources | inputSource | The device you would like to remove an event from. Any if the action is not device specific. |
SteamVR_Action_Pose.TrackingChangeHandler | functionToStopCalling | The method you would like to stop calling when tracking has changed. Should take a SteamVR_Action_Pose as a param |
RemoveOnUpdateListener(SteamVR_Input_Sources, SteamVR_Action_Pose.UpdateHandler)
Stops executing the function setup by the corresponding AddListener
Declaration
public void RemoveOnUpdateListener(SteamVR_Input_Sources inputSource, SteamVR_Action_Pose.UpdateHandler functionToStopCalling)
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. |
SteamVR_Action_Pose.UpdateHandler | functionToStopCalling | The local function that you've setup to receive update events |
RemoveOnValidPoseChanged(SteamVR_Input_Sources, SteamVR_Action_Pose.ValidPoseChangeHandler)
Stops executing the function setup by the corresponding AddListener
Declaration
public void RemoveOnValidPoseChanged(SteamVR_Input_Sources inputSource, SteamVR_Action_Pose.ValidPoseChangeHandler functionToStopCalling)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Input_Sources | inputSource | The device you would like to remove an event from. Any if the action is not device specific. |
SteamVR_Action_Pose.ValidPoseChangeHandler | functionToStopCalling | The method you would like to stop calling when the pose has become valid or invalid. Should take a SteamVR_Action_Pose as a param |
SetTrackingUniverseOrigin(ETrackingUniverseOrigin)
Sets all pose and skeleton actions to use the specified universe origin.
Declaration
public static void SetTrackingUniverseOrigin(ETrackingUniverseOrigin newOrigin)
Parameters
Type | Name | Description |
---|---|---|
ETrackingUniverseOrigin | newOrigin |
Events
onActiveBindingChange
[Shortcut to: SteamVR_Input_Sources.Any] Event fires when the active state of the binding changes
Declaration
public event SteamVR_Action_Pose.ActiveChangeHandler onActiveBindingChange
Event Type
Type | Description |
---|---|
SteamVR_Action_Pose.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_Pose.ActiveChangeHandler onActiveChange
Event Type
Type | Description |
---|---|
SteamVR_Action_Pose.ActiveChangeHandler |
onChange
[Shortcut to: SteamVR_Input_Sources.Any] Event fires when the orientation of the pose changes more than the changeTolerance
Declaration
public event SteamVR_Action_Pose.ChangeHandler onChange
Event Type
Type | Description |
---|---|
SteamVR_Action_Pose.ChangeHandler |
onDeviceConnectedChanged
[Shortcut to: SteamVR_Input_Sources.Any] Event fires when the device bound to this pose is connected or disconnected
Declaration
public event SteamVR_Action_Pose.DeviceConnectedChangeHandler onDeviceConnectedChanged
Event Type
Type | Description |
---|---|
SteamVR_Action_Pose.DeviceConnectedChangeHandler |
onTrackingChanged
[Shortcut to: SteamVR_Input_Sources.Any] Event fires when the state of the tracking has changed
Declaration
public event SteamVR_Action_Pose.TrackingChangeHandler onTrackingChanged
Event Type
Type | Description |
---|---|
SteamVR_Action_Pose.TrackingChangeHandler |
onUpdate
[Shortcut to: SteamVR_Input_Sources.Any] Event fires when the action is updated
Declaration
public event SteamVR_Action_Pose.UpdateHandler onUpdate
Event Type
Type | Description |
---|---|
SteamVR_Action_Pose.UpdateHandler |
onValidPoseChanged
[Shortcut to: SteamVR_Input_Sources.Any] Event fires when the validity of the pose has changed
Declaration
public event SteamVR_Action_Pose.ValidPoseChangeHandler onValidPoseChanged
Event Type
Type | Description |
---|---|
SteamVR_Action_Pose.ValidPoseChangeHandler |
Explicit Interface Implementations
ISerializationCallbackReceiver.OnAfterDeserialize()
Declaration
void ISerializationCallbackReceiver.OnAfterDeserialize()
ISerializationCallbackReceiver.OnBeforeSerialize()
Declaration
void ISerializationCallbackReceiver.OnBeforeSerialize()