Initialize(string)
Called during default world initialization to give the application a chance to set up additional worlds beyond (or instead of) the default world, and to perform additional one-time initialization before any worlds are created.
Read time 1 minuteLast updated 2 days ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
bool Initialize(string defaultWorldName)
Parameters
Returns
Type | Description |
|---|---|
| bool | true if the bootstrap has performed initialization, or false if default world initialization should be performed. |
Remarks
If this method returns true, it must also set World.DefaultGameObjectInjectionWorld to the world that GameObject-based code and the Editor integration should use. Unity asserts if the property is still null.