LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

PointerEventData.lastPress

public GameObject lastPress;

Description

The GameObject for the last press event.

The raw GameObject for the last press event. This means that it is the 'pressed' GameObject even if it can not receive the press event itself.