logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class CascadePointerProxy

    Bridges Unity pointer events on a cascade option to the renderer: hover focuses the option, click submits it. Attached to each interactable option so the menu works with the mouse independently of Serenity's menu input router. Requires a raycastable graphic on the option (the button's background).

    Inheritance
    object
    CascadePointerProxy
    Implements
    IPointerEnterHandler
    IEventSystemHandler
    IPointerClickHandler
    Namespace: Serenity.Menu.Infrastructure.Cascade
    Assembly: Serenity.UnityMenu.Infrastructure.dll
    Syntax
    public sealed class CascadePointerProxy : MonoBehaviour, IPointerEnterHandler, IEventSystemHandler, IPointerClickHandler
    Remarks

    Intentionally Unity-only: a thin adapter over uGUI's UnityEngine.EventSystems.IPointerEnterHandler/ UnityEngine.EventSystems.IPointerClickHandler event-system interfaces, attached only by CascadeMenuRenderer (same module). No Business port for v1 — a non-Unity port wires its own input-event bridge rather than porting an abstraction over this class.

    Constructors

    CascadePointerProxy()

    Declaration
    public CascadePointerProxy()

    Fields

    OnClick

    Declaration
    public Action OnClick
    Field Value
    Type Description
    Action

    OnEnter

    Declaration
    public Action OnEnter
    Field Value
    Type Description
    Action

    Methods

    OnPointerClick(PointerEventData)

    Declaration
    public void OnPointerClick(PointerEventData eventData)
    Parameters
    Type Name Description
    PointerEventData eventData

    OnPointerEnter(PointerEventData)

    Declaration
    public void OnPointerEnter(PointerEventData eventData)
    Parameters
    Type Name Description
    PointerEventData eventData

    Implements

    UnityEngine.EventSystems.IPointerEnterHandler
    UnityEngine.EventSystems.IEventSystemHandler
    UnityEngine.EventSystems.IPointerClickHandler
    In this article
    © 2026 Serenity. All Rights Reserved