API reference
API reference
Select your platform
No SDKs available
No versions available

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

bool ExclusiveMode[Get]
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.

Member Functions

override void UpdateModule ( )
override void Process ( )

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.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon