Method Initialize
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.
Declaration
bool Initialize(string defaultWorldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | defaultWorldName | The name of the default World that will be created |
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 DefaultGameObjectInjectionWorld to the world that GameObject-based code and the Editor integration should use. Unity asserts if the property is still null.