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.
Checking the stable version of the documentation...
InputEventMagnifyGesture¶
继承: InputEventGesture < InputEventWithModifiers < InputEventFromWindow < InputEvent < Resource < RefCounted < Object
代表放大触摸手势。
描述¶
存储放大触摸手势的系数。通常用户在触摸屏上将双指捏合,就执行了放大手势,可用于缩放。
注意:在 Android 上,这需要启用 ProjectSettings.input_devices/pointing/android/enable_pan_and_scale_gestures 项目设置。
教程¶
属性¶
|
属性说明¶
float factor = 1.0
事件的量(或增量)。这个值越接近 1.0
,手势执行地越快。