Edit

Bagikan melalui


EventSystemExtensions Class

Definition

Extension methods for Unity's EventSystem

public ref class EventSystemExtensions abstract sealed
public static class EventSystemExtensions
type EventSystemExtensions = class
Public Module EventSystemExtensions
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