public void OnUpdateSelected (EventSystems.BaseEventData eventData);

参数

eventData当前事件数据。

描述

与此 EventTrigger 关联的对象更新时由 EventSystem 调用。

using UnityEngine;
using UnityEngine.EventSystems;

public class UpdateSelectedExample : MonoBehaviour, IUpdateSelectedHandler { public void OnUpdateSelected(BaseEventData data) { Debug.Log("OnUpdateSelected called."); } }