Class UnityMessageListener
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: Unity.VisualScripting
Syntax
[AddComponentMenu("")]
[Obsolete("UnityMessageListener is deprecated and has been replaced by separate message listeners for each event, eg. UnityOnCollisionEnterMessageListener or UnityOnButtonClickMessageListener.")]
public sealed class UnityMessageListener : MessageListener, IPointerEnterHandler, IPointerExitHandler, IPointerDownHandler, IPointerUpHandler, IPointerClickHandler, IBeginDragHandler, IDragHandler, IEndDragHandler, IDropHandler, IScrollHandler, ISelectHandler, IDeselectHandler, ISubmitHandler, ICancelHandler, IMoveHandler, IEventSystemHandler
Methods
AddGUIListeners()
Declaration
public void AddGUIListeners()
OnBeginDrag(PointerEventData)
Declaration
public void OnBeginDrag(PointerEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.EventSystems.PointerEventData | eventData |
Implements
UnityEngine.EventSystems.IBeginDragHandler.OnBeginDrag(UnityEngine.EventSystems.PointerEventData)
OnCancel(BaseEventData)
Declaration
public void OnCancel(BaseEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.EventSystems.BaseEventData | eventData |
Implements
UnityEngine.EventSystems.ICancelHandler.OnCancel(UnityEngine.EventSystems.BaseEventData)
OnDeselect(BaseEventData)
Declaration
public void OnDeselect(BaseEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.EventSystems.BaseEventData | eventData |
Implements
UnityEngine.EventSystems.IDeselectHandler.OnDeselect(UnityEngine.EventSystems.BaseEventData)
OnDrag(PointerEventData)
Declaration
public void OnDrag(PointerEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.EventSystems.PointerEventData | eventData |
Implements
UnityEngine.EventSystems.IDragHandler.OnDrag(UnityEngine.EventSystems.PointerEventData)
OnDrop(PointerEventData)
Declaration
public void OnDrop(PointerEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.EventSystems.PointerEventData | eventData |
Implements
UnityEngine.EventSystems.IDropHandler.OnDrop(UnityEngine.EventSystems.PointerEventData)
OnEndDrag(PointerEventData)
Declaration
public void OnEndDrag(PointerEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.EventSystems.PointerEventData | eventData |
Implements
UnityEngine.EventSystems.IEndDragHandler.OnEndDrag(UnityEngine.EventSystems.PointerEventData)
OnMove(AxisEventData)
Declaration
public void OnMove(AxisEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.EventSystems.AxisEventData | eventData |
Implements
UnityEngine.EventSystems.IMoveHandler.OnMove(UnityEngine.EventSystems.AxisEventData)
OnPointerClick(PointerEventData)
Declaration
public void OnPointerClick(PointerEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.EventSystems.PointerEventData | eventData |
Implements
UnityEngine.EventSystems.IPointerClickHandler.OnPointerClick(UnityEngine.EventSystems.PointerEventData)
OnPointerDown(PointerEventData)
Declaration
public void OnPointerDown(PointerEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.EventSystems.PointerEventData | eventData |
Implements
UnityEngine.EventSystems.IPointerDownHandler.OnPointerDown(UnityEngine.EventSystems.PointerEventData)
OnPointerEnter(PointerEventData)
Declaration
public void OnPointerEnter(PointerEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.EventSystems.PointerEventData | eventData |
Implements
UnityEngine.EventSystems.IPointerEnterHandler.OnPointerEnter(UnityEngine.EventSystems.PointerEventData)
OnPointerExit(PointerEventData)
Declaration
public void OnPointerExit(PointerEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.EventSystems.PointerEventData | eventData |
Implements
UnityEngine.EventSystems.IPointerExitHandler.OnPointerExit(UnityEngine.EventSystems.PointerEventData)
OnPointerUp(PointerEventData)
Declaration
public void OnPointerUp(PointerEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.EventSystems.PointerEventData | eventData |
Implements
UnityEngine.EventSystems.IPointerUpHandler.OnPointerUp(UnityEngine.EventSystems.PointerEventData)
OnScroll(PointerEventData)
Declaration
public void OnScroll(PointerEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.EventSystems.PointerEventData | eventData |
Implements
UnityEngine.EventSystems.IScrollHandler.OnScroll(UnityEngine.EventSystems.PointerEventData)
OnSelect(BaseEventData)
Declaration
public void OnSelect(BaseEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.EventSystems.BaseEventData | eventData |
Implements
UnityEngine.EventSystems.ISelectHandler.OnSelect(UnityEngine.EventSystems.BaseEventData)
OnSubmit(BaseEventData)
Declaration
public void OnSubmit(BaseEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.EventSystems.BaseEventData | eventData |
Implements
UnityEngine.EventSystems.ISubmitHandler.OnSubmit(UnityEngine.EventSystems.BaseEventData)