UIPointer

Main pointer component. Needs a concrete IPointer implementation as a child in order to work.

Currently there are two concrete pointers (hand and controller). If you wish to implement your custom Pointer, just implement IPointer interface and put that component as a child of this game object.

Public Events

UnityEvent OnStartSelect

  • Will be invoked when pointer is hovering over UI element and start action is detected

UnityEvent OnStopSelect

  • Will be invoked when start action ends

UnityEvent OnPointerEnterCanvas

UnityEvent OnPointerExitCanvas

Public Methods

void UpdateCanvases()

  • If you create canvas at runtime, call this method to update the pointer canvases list

Last updated