# Initialize(string, bool)

> Initializes the default world or runs ICustomBootstrap if one is available.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public static World Initialize(string defaultWorldName, bool editorWorld = false)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the world that will be created. Unless there is a custom bootstrap.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Editor worlds by default only include systems with \[WorldSystemFilter(WorldSystemFilterFlags.Editor)]. If editorWorld is true, ICustomBootstrap will not be used.

### Returns

| Type                                                             | Description                                                                              |
| ---------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| [World](/engine/7000.0/script-reference/unity/entities/world.md) | The initialized [World](/engine/7000.0/script-reference/unity/entities/world.md) object. |
