ドキュメント

Unity Engine

Download Unity

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.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.