---
title: CreateEntity
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/entities/globalentitymanager/createentity
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/entities/globalentitymanager/createentity.md
last_updated: 2026-11-03
generated_at: 2026-11-04T06:52:48.906Z
locale: en-us
---

# CreateEntity

> Creates an entity with no components in the given world.

## Definition

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

## CreateEntity(WorldUnmanaged)

Creates an entity with no components in the given world.

```csharp
public static Entity CreateEntity(WorldUnmanaged world)
```

### Parameters

**** (\[WorldUnmanaged]\(/engine/7000.0/script-reference/unity/entities/worldunmanaged)): The world to create the entity in.

### Returns

| Type                                                               | Description     |
| ------------------------------------------------------------------ | --------------- |
| [Entity](/engine/7000.0/script-reference/unity/entities/entity.md) | The new entity. |

### Remarks

This is a structural change.

## CreateEntity(WorldUnmanaged, EntityArchetype)

Creates an entity of an archetype in the given world.

```csharp
public static Entity CreateEntity(WorldUnmanaged world, EntityArchetype archetype)
```

### Parameters

**** (\[WorldUnmanaged]\(/engine/7000.0/script-reference/unity/entities/worldunmanaged)): The world to create the entity in.**** (\[EntityArchetype]\(/engine/7000.0/script-reference/unity/entities/entityarchetype)): An archetype created in `world`.

### Returns

| Type                                                               | Description     |
| ------------------------------------------------------------------ | --------------- |
| [Entity](/engine/7000.0/script-reference/unity/entities/entity.md) | The new entity. |

### Remarks

This is a structural change.

## CreateEntity(WorldUnmanaged, ReadOnlySpan\<ComponentType>)

Creates an entity with the given components in the given world.

```csharp
public static Entity CreateEntity(WorldUnmanaged world, ReadOnlySpan<ComponentType> types)
```

### Parameters

**** (\[WorldUnmanaged]\(/engine/7000.0/script-reference/unity/entities/worldunmanaged)): The world to create the entity in.**** (\[ReadOnlySpan\<ComponentType>]\(https\://learn.microsoft.com/dotnet/api/system.readonlyspan-1)): The component types of the new entity.

### Returns

| Type                                                               | Description     |
| ------------------------------------------------------------------ | --------------- |
| [Entity](/engine/7000.0/script-reference/unity/entities/entity.md) | The new entity. |

### Remarks

This is a structural change.
