Unity Engine documentationScript ReferenceUnity.EntitiesDefaultWorldInitializationInitialize(string, bool)Initializes the default world or runs ICustomBootstrap if one is available.阅读时间1 分钟最后更新于 14 天前Definition Type: Method Namespace: Unity.Entities Assembly: UnityEngine.EntitiesModule public static World Initialize(string defaultWorldName, bool editorWorld = false) Parameters defaultWorldNamestringThe name of the world that will be created. Unless there is a custom bootstrap.editorWorldboolEditor worlds by default only include systems with [WorldSystemFilter(WorldSystemFilterFlags.Editor)]. If editorWorld is true, ICustomBootstrap will not be used. Returns TypeDescriptionWorldThe initialized World object.