API reference

PointableCanvasModule Class

Extends PointerInputModule
IPointerInteractableModule manages all InteractableCanvas events in the scene and translates them into pointer events for Unity Canvas UIs.

Events

static Action< PointableCanvasEventArgs > WhenSelected
static Action< PointableCanvasEventArgs > WhenUnselected
static Action< PointableCanvasEventArgs > WhenSelectableHovered
static Action< PointableCanvasEventArgs > WhenSelectableUnhovered

Properties

static PointableCanvasModule Instance[Get]

Protected Fields

bool _started[Get]

Static Member Functions

static void RegisterPointableCanvas
( IPointableCanvas pointerCanvas )
static void UnregisterPointableCanvas
( IPointableCanvas pointerCanvas )

Protected Functions

override void Awake ( )
override void OnDestroy ( )
override void Start ( )
override void OnEnable ( )
override void OnDisable ( )
This method is based on ProcessTouchPoint in StandaloneInputModule, but is instead used for Pointer events.
Override of PointerInputModule's ProcessDrag to allow using the initial press position for drag begin.
Set _useInitialPressPositionForDrag to false if you prefer the default behaviour of PointerInputModule.

Object Data for protected-static-func

static RaycastResult FindFirstRaycastWithinCanvas
( List< RaycastResult > candidates,
Canvas canvas )
Used in PointerInputModule's ProcessDrag implementation.
Brought into this subclass with a protected signature (as opposed to the parent's private signature) to be used in this subclass's overridden ProcessDrag.

Member Functions

override void Process ( )