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).
Implements
IPointerEnterHandler
IEventSystemHandler
IPointerClickHandler
Namespace: Serenity.Menu.Infrastructure.Cascade
Assembly: Serenity.UnityMenu.Infrastructure.dll
Syntax
public sealed class CascadePointerProxy : MonoBehaviour, IPointerEnterHandler, IEventSystemHandler, IPointerClickHandler
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