Documentation

Unity Engine


Unity Engine


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

defaultWorldName

The name of the default World that will be created

Returns

Type

Description

booltrue 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.