#UiTransform and UiGlobalTransform

3 messages · Page 1 of 1 (latest)

timid dirge
#

Bevy 0.17 Introduced UiTransform and UiGlobalTransform.

They look like a step in the right direction overall (especially with supporting rotation), but it unclear how to use them.

What do they represent? UiTransform seems to be similar to Node top and left fro the values, but from the documentation it is not really clear if the UiTransform takes the physical space or the logical space as reference.

And how does UiGlobalTransform allow me to position and absolute position node at another nodes Global Position? What does the Vec2 of the tranlsation represent?

viscid vortex
#

presumably it's the same as a regular transform but 2d and with y down

mint field
#

just like transform/globaltransform, uiglobaltransform is read only and is computed based on the node's uitransform and the uiglobaltransform of its parent