class MAGES::Interaction::RayUIInteractor¶
Overview¶
An interactor that uses a ray to interact with UI elements. More…
class RayUIInteractor: public MAGES::Interaction::BaseUIInteractor { public: // properties float RayLength; bool Pressed; // methods override void UpdateUIModel(TrackedDeviceModel model); };
Inherited Members¶
public: // properties int PointerId; Transform Transform; bool AllowUIInteraction; bool IsPointerOverGameObject; UnityEvent RegisterEnter; UnityEvent DeregisterEnter; int PointerId; Transform Transform; bool AllowUIInteraction; bool IsPointerOverGameObject; UnityEvent RegisterEnter; UnityEvent DeregisterEnter; // methods TrackedDeviceModel TryGetUIModel(); PointerEventData TryGetLastPointerEventData(); void UpdateUIModel(TrackedDeviceModel model); bool RegisterToEventSystem(); void DeregisterFromEventSystem(); bool RegisterToEventSystem(); virtual void DeregisterFromEventSystem(); virtual TrackedDeviceModel TryGetUIModel(); virtual PointerEventData TryGetLastPointerEventData(); void UpdateUIModel(TrackedDeviceModel model);
Detailed Documentation¶
An interactor that uses a ray to interact with UI elements.
Properties¶
float RayLength
Gets or sets the ray length.
bool Pressed
Gets or sets a value indicating whether the interactor select/click button is pressed.
Methods¶
override void UpdateUIModel(TrackedDeviceModel model)
Updates the UI model with the current state of the interactor.
Parameters:
model |
The model to fill with the current state of the IUIInteractor. |