-
|
Is there any way I can have this: instead of using I see a similar example here https://github.com/skypjack/entt/wiki/Entity-Component-System#types-const-non-const-and-all-in-between. But I get these errors: I need this to take a view inside a function parameter like this: void Update(entt::view<position, const velocity> view); |
Beta Was this translation helpful? Give feedback.
Answered by
skypjack
Sep 12, 2025
Replies: 1 comment 1 reply
-
|
Sure thing, it's: entt::view<entt::get_t<position, const velocity>> view = registry.view<position, const velocity>();See here for example. Also, thanks for pointing out that the documentation is wrong on this. Sorry for that. 👍 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
SC5Shout
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sure thing, it's:
See here for example. Also, thanks for pointing out that the documentation is wrong on this. Sorry for that. 👍