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

ControllerPointerPose Class

Extends MonoBehaviour
The origin of the ray used by RayInteractors associated with IControllers.
This is used heavily in Interaction SDK prefabs, wizards, and example scenes, which are also the best way to adopt this functionality.
This type implements IActiveState as an indication of whether the underlying controller interaction is active and updating. This is an unusual pattern, however, and for most usages you should prefer to monitor an InteractorActiveState associated with the downstream interactor rather than monitoring the activity of a pointer pose.

Protected Fields

_started : bool
Signature
bool Oculus.Interaction.ControllerPointerPose._started

Properties

Active : bool
[Get]
Implementation of IActiveState.Active; for details, please refer to the related documentation provided for that property.
Signature
bool Oculus.Interaction.ControllerPointerPose.Active
Controller : IController
[Get]
The IController from which the downstream RayInteractor should be controlled.
Signature
IController Oculus.Interaction.ControllerPointerPose.Controller

Protected Methods

Awake ()
Signature
virtual void Oculus.Interaction.ControllerPointerPose.Awake()
Returns
void
OnDisable ()
Signature
virtual void Oculus.Interaction.ControllerPointerPose.OnDisable()
Returns
void
OnEnable ()
Signature
virtual void Oculus.Interaction.ControllerPointerPose.OnEnable()
Returns
void
Start ()
Signature
virtual void Oculus.Interaction.ControllerPointerPose.Start()
Returns
void

Methods

InjectAllControllerPointerPose ( controller , offset )
Injects all required dependencies for a dynamically instantiated ControllerPointerPose; effectively wraps InjectController(IController) and InjectOffset(Vector3).
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.ControllerPointerPose.InjectAllControllerPointerPose(IController controller, Vector3 offset)
Parameters
controller: IController
offset: Vector3
Returns
void
InjectController ( controller )
Sets the IController for a dynamically instantiated ControllerPointerPose.
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.ControllerPointerPose.InjectController(IController controller)
Parameters
controller: IController
Returns
void
InjectOffset ( offset )
Sets the offset vector for a dynamically instantiated ControllerPointerPose.
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.ControllerPointerPose.InjectOffset(Vector3 offset)
Parameters
offset: Vector3
Returns
void