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

ControllerRef Class

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

Fields

Active : bool
Implementation of IController.Active.
For detailed information, refer to the related documentation provided for that interface.
Signature
bool Oculus.Interaction.Input.ControllerRef.Active
ControllerInput : ControllerInput
Implementation of IController.ControllerInput.
For detailed information, refer to the related documentation provided for that interface.
Signature
ControllerInput Oculus.Interaction.Input.ControllerRef.ControllerInput
Handedness : Handedness
Implementation of IController.Handedness.
For detailed information, refer to the related documentation provided for that interface.
Signature
Handedness Oculus.Interaction.Input.ControllerRef.Handedness
IsConnected : bool
Implementation of IController.IsConnected.
For detailed information, refer to the related documentation provided for that interface.
Signature
bool Oculus.Interaction.Input.ControllerRef.IsConnected
IsPoseValid : bool
Implementation of IController.IsPoseValid.
For detailed information, refer to the related documentation provided for that interface.
Signature
bool Oculus.Interaction.Input.ControllerRef.IsPoseValid
Scale : float
Implementation of IController.Scale.
For detailed information, refer to the related documentation provided for that interface.
Signature
float Oculus.Interaction.Input.ControllerRef.Scale

Properties

WhenUpdated : Action
Implementation of IController.WhenUpdated.
For detailed information, refer to the related documentation provided for that interface.
Signature
Action Oculus.Interaction.Input.ControllerRef.WhenUpdated

Protected Methods

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

Methods

InjectAllControllerRef ( controller )
Injects all required dependencies for a dynamically instantiated ControllerRef.
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.ControllerRef.InjectAllControllerRef(IController controller)
Parameters
controller: IController
Returns
void
InjectController ( controller )
Sets the underlying IController for a dynamically instantiated ControllerRef.
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.ControllerRef.InjectController(IController controller)
Parameters
controller: IController
Returns
void
IsButtonUsageAllActive ( buttonUsage )
For detailed information, refer to the related documentation provided for that interface.
Signature
bool Oculus.Interaction.Input.ControllerRef.IsButtonUsageAllActive(ControllerButtonUsage buttonUsage)
Parameters
buttonUsage: ControllerButtonUsage
Returns
bool
IsButtonUsageAnyActive ( buttonUsage )
For detailed information, refer to the related documentation provided for that interface.
Signature
bool Oculus.Interaction.Input.ControllerRef.IsButtonUsageAnyActive(ControllerButtonUsage buttonUsage)
Parameters
buttonUsage: ControllerButtonUsage
Returns
bool
TryGetPointerPose ( pose )
Implementation of IController.TryGetPointerPose.
For detailed information, refer to the related documentation provided for that interface.
Signature
bool Oculus.Interaction.Input.ControllerRef.TryGetPointerPose(out Pose pose)
Parameters
pose: out Pose
Returns
bool
TryGetPose ( pose )
Implementation of IController.TryGetPose.
For detailed information, refer to the related documentation provided for that interface.
Signature
bool Oculus.Interaction.Input.ControllerRef.TryGetPose(out Pose pose)
Parameters
pose: out Pose
Returns
bool