Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

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.

Did you find this page useful? Please give it a rating: