Skip to content
Discussion options

You must be logged in to vote

You can either use multiple calls, or you can use the unsafe API. Althought the unsafe API is a bit slower than the generic one, this will probably be faster than multiple calls, but it is also less ergonomic. Just make sure that you don't call ecs.ComponentID every time, but only once and re-use the IDs.

Creating entities using the unsafe API initializes them with zero-value components, so you still need to assign the actual values.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by bolom009
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