Language
Edit

UGUIInputAdapter.IsXRUIEvent(PointerEventData) Method

Definition

Test if the given event data corresponds to a Unity XRI interactor.

protected bool IsXRUIEvent(UnityEngine.EventSystems.PointerEventData pointerEventData);
member this.IsXRUIEvent : UnityEngine.EventSystems.PointerEventData -> bool
Protected Function IsXRUIEvent (pointerEventData As PointerEventData) As Boolean

Parameters

pointerEventData
UnityEngine.EventSystems.PointerEventData

Returns

true if the provided pointer event data corresponds to a Unity XRI interactor, false if it corresponds to mouse, keyboard, gamepad, or touch.

Remarks

Used to filter XRI interactions out of all canvas input, so that duplicate events are not triggered on hybrid/unified UX.

Applies to