API reference
API reference
Select your platform
No SDKs available
No versions available

ControllerDataAsset Class

The data asset used by DataModifier<ControllerDataAsset> to pipe data through the DataModifier<TData> stack, and contains controller state data.

Fields

Config : ControllerDataSourceConfig
This data object contains configuration data that is shuttled through the DataModifier<TData> stack.
Signature
ControllerDataSourceConfig Oculus.Interaction.Input.ControllerDataAsset.Config
Input : ControllerInput
Input state data such as button presses and axis state.
Signature
ControllerInput Oculus.Interaction.Input.ControllerDataAsset.Input
IsConnected : bool
Is the controller connected to the headset.
Signature
bool Oculus.Interaction.Input.ControllerDataAsset.IsConnected
IsDataValid : bool
Is the data in this asset considered valid.
Signature
bool Oculus.Interaction.Input.ControllerDataAsset.IsDataValid
IsDominantHand : bool
True if this controller is associated with the dominant hand, as set by the system handedness.
Signature
bool Oculus.Interaction.Input.ControllerDataAsset.IsDominantHand
IsTracked : bool
Is the controller being tracked by the headset.
Signature
bool Oculus.Interaction.Input.ControllerDataAsset.IsTracked
PointerPose : Pose
The pointer pose for the controller, which is generally used as the raycast source pose.
See PointerPoseOrigin for information on how this pose was created.
Signature
Pose Oculus.Interaction.Input.ControllerDataAsset.PointerPose
PointerPoseOrigin : PoseOrigin
Information about how PointerPose was created, for example whether it is the raw pose from tracking, or whether is has been filtered or modified in the DataModifier<TData> stack.
Signature
PoseOrigin Oculus.Interaction.Input.ControllerDataAsset.PointerPoseOrigin
RootPose : Pose
The root pose of the controller, which represents the canonical controller position.
See RootPoseOrigin for information on how this pose was created.
Signature
Pose Oculus.Interaction.Input.ControllerDataAsset.RootPose
RootPoseOrigin : PoseOrigin
Information about how RootPose was created, for example whether it is the raw pose from tracking, or whether is has been filtered or modified in the DataModifier<TData> stack.
Signature
PoseOrigin Oculus.Interaction.Input.ControllerDataAsset.RootPoseOrigin

Methods

CopyFrom ( source )
Copies the provided ControllerDataAsset into the caller.
Signature
void Oculus.Interaction.Input.ControllerDataAsset.CopyFrom(ControllerDataAsset source)
Parameters
source: ControllerDataAsset  The source to copy from.
Returns
void
CopyPosesAndStateFrom ( source )
Copies only pose and state data from a provided ControllerDataAsset into the caller.
Signature
void Oculus.Interaction.Input.ControllerDataAsset.CopyPosesAndStateFrom(ControllerDataAsset source)
Parameters
source: ControllerDataAsset  The source to copy from.
Returns
void