Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#

IUpdateSelectedHandler.OnUpdateSelected

public void OnUpdateSelected(EventSystems.BaseEventData eventData);

Parameters

eventDataCurrent event data.

Description

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."); } }

Did you find this page useful? Please give it a rating: