Add an entity in this world to a group in this world
Move group from other world to this one. A new handle will be generated!
Clear all entities and groups from this world
Disband all groups. Entities will not be removed
Remove all resources from this world
Create a new entity and add it to this world
Create a new group and add it to this world
Query entities and find the ones with a certain combination of component.
To get a single entity by ID, please use the global function getEntity()
Optionalquery: Readonly<IEntitiesQuery>Get all entities associated with a group
Get all resources stored in this world. Useful for debugging
Optionaltypes: readonly TExistenceQueryParameter<any>[]Load a prefab
Optionaloptions: Readonly<ISerDeOptions<TDeserializer>>OptionalintoGroup: numberMerge entities from another world into this one
OptionalintoGroup: numberRemove a group and all entities inside from this world
Remove a resource from this world
Prepare a savable version of the current world. The query can be used to only save a sub-set with specific conditions
Optionaloptions: Readonly<ISerDeOptions<TSerializer>>
Add several entities in this world to a group in this world