bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
36.46k stars 3.6k forks source link

Text resizes after being accessed mutably #10615

Closed UkoeHB closed 1 year ago

UkoeHB commented 1 year ago

Bevy version

v0.12.0

[Optional] Relevant system information

MacOS

What you did

Ran this bevy_kot example.

What went wrong

The example text often, but not always, starts out with the wrong size and alignment. After I access a Text component mutably (e.g. text.get_mut(id).unwrap().into_inner()), the size and alignment is fixed to the expected values.

Additional information

Video (see at the very start of the video one of the text elements changes size): https://github.com/bevyengine/bevy/assets/37489173/cb27d3dc-aae1-436e-96d9-f61af5b1e3e3

Note that the text entity is added via bevy_lunex, but lunex doesn't do anything special with the Text component. See here.

UkoeHB commented 1 year ago

Looks like #10407 is the same issue.