Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

EventSystems.PointerInputModule.DeselectIfSelectionChanged

Switch to Manual
protected function DeselectIfSelectionChanged(currentOverGo: GameObject, pointerEvent: BaseEventData): void;

Parameters

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

Description

Deslect the current selected GameObject if the current pointed at GameObject is different.