Breaking Change: Gesture Space #215
adgray1
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In version 1.2.3, we're introducing a
GestureSpace
field on Interactables in order to better handle drag/scroll gestures on UI objects actively moving in world space (e.g. on a moving platform).Prior to this change, pointer positions from the previous frame were stored in world space. After this change, each Interactable can be configured to use world space or UIBlock root space.
We've opted to default the
GestureSpace
value to UIBlock root space, a.k.a.GestureSpace.Root
, as it should cover the majority of use cases, but it will impact scenarios where the local position, local rotation, or local scale of the root UIBlock is changinging while one of its descendant Interactables is being "dragged" - doesn't apply to scrolling.To handle this change in your project, you can change the
Gesture Space
on any offending Interactables toGestureSpace.World
, and that will restore the former behavior.We apologize for any inconvenience!
Beta Was this translation helpful? Give feedback.
All reactions