API reference

HmdOffset Class

Extends MonoBehaviour
Drives its Transform to match the pose provided by an IHmd, with optional constraints and added position/rotation offset.

Protected Fields

_started : bool
Signature
bool Oculus.Interaction.PoseDetection.HmdOffset._started

Protected Methods

Awake ()
Signature
virtual void Oculus.Interaction.PoseDetection.HmdOffset.Awake()
Returns
void
HandleHmdUpdated ()
Signature
virtual void Oculus.Interaction.PoseDetection.HmdOffset.HandleHmdUpdated()
Returns
void
OnDisable ()
Signature
virtual void Oculus.Interaction.PoseDetection.HmdOffset.OnDisable()
Returns
void
OnEnable ()
Signature
virtual void Oculus.Interaction.PoseDetection.HmdOffset.OnEnable()
Returns
void
Start ()
Signature
virtual void Oculus.Interaction.PoseDetection.HmdOffset.Start()
Returns
void

Methods

InjectAllHmdOffset ( hmd )
Injects all required dependencies for a dynamically instantiated HmdOffset.
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.PoseDetection.HmdOffset.InjectAllHmdOffset(IHmd hmd)
Parameters
hmd: IHmd
Returns
void
InjectHmd ( hmd )
Sets the underlying IHmd for a dynamically instantiated HmdOffset.
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.PoseDetection.HmdOffset.InjectHmd(IHmd hmd)
Parameters
hmd: IHmd
Returns
void
InjectOptionalDisablePitchFromSource ( val )
Sets the underlying DisablePitchFromSource for a dynamically instantiated HmdOffset.
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.PoseDetection.HmdOffset.InjectOptionalDisablePitchFromSource(bool val)
Parameters
val: bool
Returns
void
InjectOptionalDisableRollFromSource ( val )
Sets the underlying DisableRollFromSource for a dynamically instantiated HmdOffset.
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.PoseDetection.HmdOffset.InjectOptionalDisableRollFromSource(bool val)
Parameters
val: bool
Returns
void
InjectOptionalDisableYawFromSource ( val )
Sets the underlying DisableYawFromSource for a dynamically instantiated HmdOffset.
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.PoseDetection.HmdOffset.InjectOptionalDisableYawFromSource(bool val)
Parameters
val: bool
Returns
void
InjectOptionalOffsetRotation ( val )
Sets the underlying rotation offset for a dynamically instantiated HmdOffset.
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.PoseDetection.HmdOffset.InjectOptionalOffsetRotation(Vector3 val)
Parameters
val: Vector3
Returns
void
InjectOptionalOffsetTranslation ( val )
Sets the underlying position offset for a dynamically instantiated HmdOffset.
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.PoseDetection.HmdOffset.InjectOptionalOffsetTranslation(Vector3 val)
Parameters
val: Vector3
Returns
void