# PushWorldStack(World)

> Makes world the World.DefaultGameObjectInjectionWorld.

## Definition

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

```csharp
public static void PushWorldStack(World world)
```

### Parameters

**** (\[World]\(/engine/7000.0/script-reference/unity/entities/world)): The [World](/engine/7000.0/script-reference/unity/entities/world.md) to make the DefaultGameObjectInjectionWorld.

### Remarks

Every push should have a matching [World.PopWorldStack](/engine/7000.0/script-reference/unity/entities/world/popworldstack.md). It is preferable to use [World.ActiveWorldScope](/engine/7000.0/script-reference/unity/entities/world/activeworldscope.md), which pops for you even when the body throws.
