EntityManager
Manages entity creation, destruction, and lifecycle.
EntityManager is responsible for allocating and releasing entity IDs, which are opaque 32-bit handles used throughout Filament to refer to scene objects and their components. It is recommended to cache the EntityManager instance.
Thread Safe: All operations on EntityManager are thread-safe.
Properties
Functions
Link copied to clipboard
Seals the current epoch and starts a new one, recording later destructions there; recycles safe epochs.
Link copied to clipboard
Flushes pending entity lifecycle notifications to registered listeners.
Link copied to clipboard
Recycles the indices of epochs that are safe to reclaim; advanceEpoch already does this, so it is for tests.