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

InteractorControllerDecorator Class

Extends MonoBehaviour
Associates one or more IInteractorViews with an IController using Context decoration patterns.
This is useful in scenarios where knowing the controller associated with an interaction is valuable, even if the interactor in question does not expose it.

Static Methods

TryGetControllerForInteractor ( interactor , controller )
Retrieves the IController, if there is one, with which an IInteractorView has been associated using Context decoration.
Signature
static bool Oculus.Interaction.InteractorControllerDecorator.TryGetControllerForInteractor(IInteractorView interactor, out IController controller)
Parameters
interactor: IInteractorView  The interactor which may have been associated with a controller
controller: out IController  The controller associated with the interactor
Returns
bool  True if controller was populated with a valid associated IController, false otherwise.