Skip to content

How to reference components from other components? #13309

Answered by SkiFire13
TwilightMage asked this question in Q&A
Discussion options

You must be logged in to vote

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 a Query<&Chunk> and call get on it passing the Entity.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TwilightMage
Comment options

Answer selected by TwilightMage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants