PointerInputModule.DeselectIfSelectionChanged

切换到手册
protected void DeselectIfSelectionChanged (GameObject currentOverGo, EventSystems.BaseEventData pointerEvent);

参数

currentOverGo指针当前悬停在其上的 GameObject
pointerEvent当前事件数据。

描述

取消选择当前已选择的游戏对象(如果指针当前指向的是其他游戏对象)。