EventSystemExtensions Class

Definition

Extension methods for Unity's EventSystem

C++
public ref class EventSystemExtensions abstract sealed
Inheritance
EventSystemExtensions

Methods

ExecuteHierarchyUpward<T>(GameObject, BaseEventData, ExecuteEvents.EventFunction<T>)

Bubbles up an event to the parents of the root game object if the event data is not already used.

Raycast(EventSystem, PointerEventData, LayerMask[], RaycastResultComparer)

Executes a raycast all and returns the closest element. Fixes the current issue with Unity's raycast sorting which does not consider separate canvases.

Applies to

Ürün Sürümler
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0