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()
Optional
query: Readonly<IEntitiesQuery>Get a list of RuntimeWorlds which was generated from this PreptimeWorld
Get all entities associated with a group
Get all resources stored in this world. Useful for debugging
Optional
types: readonly TExistenceQueryParameter<any>[]Load a prefab
Optional
options: Readonly<ISerDeOptions<TDeserializer>>Optional
intoGroup: numberMerge entities from another world into this one
Optional
intoGroup: numberPrepare a runtime environment from this world
Optional
options: Readonly<Partial<IPreptimeOptions>>Remove 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
Optional
options: Readonly<ISerDeOptions<TSerializer>>
Configuration of how a runtime should work