PointerInputModule.DeselectIfSelectionChanged

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

Parameters

currentOverGoThe GameObject the pointer is currently over.
pointerEventCurrent event data.

Description

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

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答