Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

PointerInputModule.GetTouchPointerEventData

protected EventSystems.PointerEventData GetTouchPointerEventData(Touch input, out bool pressed, out bool released);

Parameters

input Processing Touch.
pressed Are we pressed.
released Are we released.

Description

Given a touch populate the PointerEventData and return if we are pressed or released.