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

InteractableController Class

Extends Controller
This is a MonoBehaviour served as the base element of any interactable UI elements of Immersive Debugger.
Manages the pointer handler and hover states of the UI element, and providing a helper function to play haptics by inherited classes. For more info about Immersive Debugger, check out the official doc

Protected Properties

Hover : bool
[Get]
Signature
bool Hover

Protected Methods

OnDisable ()
Signature
virtual void OnDisable()
Returns
void
OnHoverChanged ()
Signature
virtual void OnHoverChanged()
Returns
void
PlayHaptics ( hapticsClip )
Signature
void PlayHaptics(OVRHapticsClip hapticsClip)
Parameters
hapticsClip: OVRHapticsClip
Returns
void
Setup ( owner )
Signature
override void Setup(Controller owner)
Parameters
owner: Controller
Returns
override void

Methods

OnPointerClick ()
The function that is called by the PointerHandler when the pointer clicked onto the UI component.
Expect to be overriden by inherited classes.
Signature
virtual void OnPointerClick()
Returns
void
OnPointerEnter ()
The function that is called by the PointerHandler when the pointer enters into the UI component.
Signature
void OnPointerEnter()
Returns
void
OnPointerExit ()
The function that is called by the PointerHandler when the pointer exits from the UI component.
Signature
void OnPointerExit()
Returns
void