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

HmdRef Class

Extends MonoBehaviour
A utility component that delegates all of its IHmd implementation to the provided IHmd source object.

Properties

WhenUpdated : Action
Implementation of IHmd.WhenUpdated.
For detailed information, refer to the related documentation provided for that interface.
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 )
Injects all required dependencies for a dynamically instantiated HmdRef.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Signature
void Oculus.Interaction.Input.HmdRef.InjectAllHmdRef(IHmd hmd)
Parameters
hmd: IHmd
Returns
void
InjectHmd ( hmd )
Sets the underlying IHmd for a dynamically instantiated HmdRef.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Signature
void Oculus.Interaction.Input.HmdRef.InjectHmd(IHmd hmd)
Parameters
hmd: IHmd
Returns
void
TryGetRootPose ( pose )
Implementation of IHmd.TryGetRootPose(out Pose).
For detailed information, refer to the related documentation provided for that interface.
Signature
bool Oculus.Interaction.Input.HmdRef.TryGetRootPose(out Pose pose)
Parameters
pose: out Pose
Returns
bool