eventData | Current event data. |
Called by the EventSystem when the object associated with this EventTrigger is updated.
using UnityEngine; using UnityEngine.EventSystems;
public class UpdateSelectedExample : MonoBehaviour, IUpdateSelectedHandler { public void OnUpdateSelected(BaseEventData data) { Debug.Log("OnUpdateSelected called."); } }