How to reference components from other components? #13309
Answered
by
SkiFire13
TwilightMage
asked this question in
Q&A
-
So, this is my use case. |
Beta Was this translation helpful? Give feedback.
Answered by
SkiFire13
May 10, 2024
Replies: 1 comment 1 reply
-
You can use a |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
TwilightMage
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use a
Entity
to "reference" (not in the sense of holding an actual Rust reference though) another entity. To get a&Chunk
out of it you'll have to take aQuery<&Chunk>
and callget
on it passing theEntity
.