Skip to content

Am I using registry.view<...>().front()) correctly or is this code messy? #1231

Answered by skypjack
rudiHammad asked this question in Q&A
Discussion options

You must be logged in to vote

and because maybe in the future I'll do a MultiCameraSystem that would split the screen that will require two cameras

In this case, I'd implement it as a loop over the camera component from the beginning.
It doesn't hurt and you won't have to change it later on in case. 🤷‍♂️

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rudiHammad
Comment options

@skypjack
Comment options

Answer selected by rudiHammad
@rudiHammad
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question open question discussion it sounds interesting, let's discuss it
2 participants