class MAGES::Interaction::DirectUIInteractor

Overview

An interactor that uses a sphere to interact with UI elements. More…

class DirectUIInteractor: public MAGES::Interaction::BaseUIInteractor
{
public:
    // properties

    float Radius;

    // 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 sphere to interact with UI elements.

Properties

float Radius

Gets or sets the sphere radius.

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.