eventData | 当前事件数据。 |
与此 EventTrigger 关联的对象更新时由 EventSystem 调用。
using UnityEngine;
using UnityEngine.EventSystems;
public class UpdateSelectedExample : MonoBehaviour, IUpdateSelectedHandler
{
public void OnUpdateSelected(BaseEventData data)
{
Debug.Log("OnUpdateSelected called.");
}
}