# PeekWorldStack()

> Returns the World on top of the currently active World stack, or null if no World has been pushed.

## Definition

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

```csharp
public static World PeekWorldStack()
```

### Returns

| Type                                                             | Description                                                                                     |
| ---------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| [World](/engine/7000.0/script-reference/unity/entities/world.md) | The currently active [World](/engine/7000.0/script-reference/unity/entities/world.md), or null. |
