DecayKnowledgebase
functiongenerated

Ui.drag

How far the finger that landed on an element moved this frame, as a Vec2 in overlay units, even once it slides off: a look pad is an element a thumb drags across. Zero when nothing is on it.

Signature

Ui.drag(element: Entity) -> Vec2

Member of Ui

Related types

Entity

Source
docs/generated/decay-api.json
Schema
v1
Engine version
0.1.0
Source commit
909aca81368b