Interface IUpdateSelectedHandler
Interface to implement if you wish to receive OnUpdateSelected callbacks.
Namespace: UnityEngine.EventSystems
Assembly: UnityEngine.UI.dll
Syntax
public interface IUpdateSelectedHandler : IEventSystemHandler
Remarks
Criteria for this event is implementation dependent. For example see StandAloneInputModule.
Methods
OnUpdateSelected(BaseEventData)
Called by the EventSystem to update the selected object.
Declaration
void OnUpdateSelected(BaseEventData eventData)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseEventData | eventData | The event data for the update. |
Examples
using UnityEngine;
using UnityEngine.EventSystems;
public class UpdateSelectedExample : MonoBehaviour, IUpdateSelectedHandler
{
public void OnUpdateSelected(BaseEventData data)
{
Debug.Log("OnUpdateSelected called.");
}
}