This repository was archived by the owner on Mar 4, 2025. It is now read-only.
Replies: 1 comment
-
I solved this by filtering the query in the system that reacts to the TileClicked Event:
Let me know if there is a more elegant way |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hi everyone,
i am pretty new to bevy and not sure if the solution lies in this package or is another bevy feature, but i was unable to find one.
I have a 3d Tilemap and want to sent an event on click containing the tile coordiantes that has been clicked.
So far i spawn the tiles with a Tile component including the coordinates and
On::<Pointer<Click>>::send_event::<TileClicked>(),
I am able to access the entity in the event but do not know how to access the tiles components:
Beta Was this translation helpful? Give feedback.
All reactions