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

ControllerPointerPose Class

Extends MonoBehaviour, IActiveState
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.

Properties

The IController from which the downstream RayInteractor should be controlled.
Implementation of IActiveState.Active; for details, please refer to the related documentation provided for that property.

Protected Fields

bool _started[Get]

Protected Functions

virtual void Awake ( )
virtual void Start ( )
virtual void OnEnable ( )
virtual void OnDisable ( )

Member Functions

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.
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.
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.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon