Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

InputEventMagnifyGesture

Eredita: InputEventGesture < InputEventWithModifiers < InputEventFromWindow < InputEvent < Resource < RefCounted < Object

Rappresenta un gesto tattile di ingrandimento.

Descrizione

Memorizza il fattore di un gesto tattile di ingrandimento. Solitamente viene eseguito quando l'utente pizzica il touch screen e viene utilizzato per ingrandire/ridurre.

Nota: Su Android, questo richiede che l'impostazione del progetto ProjectSettings.input_devices/pointing/android/enable_pan_and_scale_gestures sia abilitata.

Tutorial

Proprietà

float

factor

1.0


Descrizioni delle proprietà

float factor = 1.0 🔗

  • void set_factor(value: float)

  • float get_factor()

La quantità (o delta) dell'evento. Questo valore è più vicino a 1.0 quanto più lentamente viene eseguito il gesto.