Open picoHz opened 3 months ago
Yup, I can reproduce this easily. I investigated for an hour, I know the reason but workarounds I tried didn't work out.
So, here, I do 1:N mapping of entity -> render world entity. There is a bug there, where I overwrite the same entity because it is insert_or_spawn_batch
. Changing it to spawn_batch doesn't help, there are two theories I have regarding that:
In any case I'm stuck. I'm leaning more into the first case, if that's the case, I think maybe there is a workaround. So I'll be asking that in bevy #rendering channel.
I was wrong, I think I figured the real reason: visible entities. It is the thing that has mismatch. Though I don't know how to solve it for 1:N case without causing any extra indirections. I might check it out during 0.14 upgrade, though no promises. Have to much work, so little time, sorry!
When I use different fonts in each section, only one font is displayed, seemingly depending on the loading order. For example, the following code displays either "IMPORTANT" or "text".