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

HmdRef Class

Extends MonoBehaviour
A set of constants that are passed to each child of a Hand modifier tree from the root DataSource.

Properties

WhenUpdated : Action
Signature
Action Oculus.Interaction.Input.HmdRef.WhenUpdated

Protected Methods

Awake ()
Signature
virtual void Oculus.Interaction.Input.HmdRef.Awake()
Returns
void
Start ()
Signature
virtual void Oculus.Interaction.Input.HmdRef.Start()
Returns
void

Methods

InjectAllHmdRef ( hmd )
Signature
void Oculus.Interaction.Input.HmdRef.InjectAllHmdRef(IHmd hmd)
Parameters
hmd: IHmd
Returns
void
InjectHmd ( hmd )
Signature
void Oculus.Interaction.Input.HmdRef.InjectHmd(IHmd hmd)
Parameters
hmd: IHmd
Returns
void
TryGetRootPose ( pose )
Attempts to retrieve the world-space pose (position and orientation) of the HMD.
If a valid HMD pose is available, it will be stored in the pose argument and this method will return true; otherwise, the pose argument will be set to the identity pose and the method will return false.
Signature
bool Oculus.Interaction.Input.HmdRef.TryGetRootPose(out Pose pose)
Parameters
pose: out Pose  The struct to be populated with the HMD pose
Returns
bool  True if the out argument was populated with a valid HMD pose, false otherwise