Unity响应鼠标进出事件
1. 如果是UI界面需要响应鼠标进出事件,因为是通过EventSystem实现的,则需using UnityEngine.EventSystems;实现IPointerEnterHandler, IPointerExitHandler接口在void IPointerEnterHandler.OnPointerEnter(PointerEventData eventData) ...