Skip to content

Entity Shared Memory ​

Entity Shared Memory block is used as generic memory storage that are accessible by other entities.

Identifier ​

ts
const EntitySharedMemoryId = 4002

Values ​

IndexInitial ValueDescription
0-310Generic memory

Access ​

CallbackReadWrite
preprocess✔✔
spawnTime✔❌
despawnTime✔❌
initialize✔❌
updateSequential✔✔
updateParallel✔❌
terminate✔❌
updateSpawn✔❌

Remarks ​

Entity Shared Memory is simply a view into Entity Shared Memory Array.

For entities spawned by Spawn function call, it does not have any shared memory and cannot access this block.