Skip to main content

next_entity_id

Function next_entity_id 

Source
pub fn next_entity_id() -> i32
Expand description

Allocates a new unique entity ID.

This is the primary way to get entity IDs for spawning entities. Thread-safe through the shared counter lock.