This version of Unity is unsupported.

PointerInputModule.DeselectIfSelectionChanged

Declaration

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

Parameters

currentOverGo The GameObject the pointer is currently over.
pointerEvent Current event data.

Description

Deselect the current selected GameObject if the currently pointed-at GameObject is different.