Simple UI Interactor

The Simple UI Interactor enables users to interact smoothly with UIs that have the MAGES Graphic Raycaster component.

Options of the component:

../../../_images/simple_ui_interactor.png

Name

Explanation

Input Source

The input source for selecting UI elements.
  • Manual: No input is used for selecting UI elements. You must manually call Select/Deselect on the UIInteractor.

  • Left: Gets input from the UI Select/Deselect Left action.

  • Right: Gets input from UI Select/Deselect Right action.

Ray Origin

The ray origin for the UI interactor. The z-axis will be used for the ray’s forward direction.

Ray Length

The length of the raycast in Unity units.

Reticle

The reticle to use when hovering over UI elements. It will be initialized on Start().

Show Line Visual Only When Pointing at UI

If true, the line will be invisible when not pointing at UIs. To enable visuals, the LineVisualizer component must be added to the GameObject or its children.