PointerInputModule.DeselectIfSelectionChanged

Switch to Manual
protected void DeselectIfSelectionChanged (GameObject currentOverGo, EventSystems.BaseEventData pointerEvent);

Parameters

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

Description

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