Create an entity after destroying one #1120
Answered
by
skypjack
gamecoder-nz
asked this question in
Q&A
-
I have this code but entity2 is 1048576. Is this correct? |
Beta Was this translation helpful? Give feedback.
Answered by
skypjack
Mar 4, 2024
Replies: 1 comment
-
Well, yeah, definitely. It would be a huge problem otherwise. 🙂 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gamecoder-nz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well, yeah, definitely. It would be a huge problem otherwise. 🙂
When you destroy an identifier, it's recycled with a different version number. Recycled identifiers are returned before creating new ones.
If you look the entity part of the identifier, it's the same as before. However, the version changes from 0 to 1. That's all.