Guillaume Wafo-Tapa

Results 10 comments of Guillaume Wafo-Tapa

According to the [doc](https://docs.rs/bevy/latest/bevy/ecs/event/struct.Events.html#details), this is the expected behavior. When an event is generated, some systems may already have run in the current frame. Thus, it's already too late for...

@MJohnson459 The scenario from your code snippet is different from having a `run_if` condition on the system. I've noticed that for queries with filter `Changed`, change detection happens whenever the...

@MeoMix The world is small after all :)

You're not supposed to add both components Sprite and Mesh2d to the same entity. You should spawn one as a child of the other. See [#18006](https://github.com/bevyengine/bevy/discussions/18006)

I believe your approach is correct to define that clickable area but meshes are not pickable by default. You need to choose a backend (e.g. `MeshPickingPlugin`). I have your code...

@lishaoxia1985 Hey. I'm not sure what you mean. If you have a `Sprite` entity with a `Mesh2d` child, you only need to add the `Transform` to the parent (and let...

I forgot to mention you have to specify the z coordinate of the child to put it on top or below its parent. But I see you've done that. I've...

> [@gwafotapa](https://github.com/gwafotapa) You should test more. For example, spawn or despawn the entity every 5s. In my PC, the result is uncertain by using `with_children`, sometimes sprite covers mesh, sometimes...

I think I got it. When adding the meshes as children, you corrected the translation `x` and `y` but not `z` which is why you're getting the discrepancy. More precisely...

Are you still experiencing the issue after fixing the z coordinate ?