---
title: CreateArchetype(WorldUnmanaged, ReadOnlySpan<ComponentType>)
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/createarchetype
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/entities/globalentitymanager/createarchetype.md
last_updated: 2026-11-03
generated_at: 2026-11-04T11:39:46.969Z
locale: en-us
---

# CreateArchetype(WorldUnmanaged, ReadOnlySpan<ComponentType>)

> Creates an archetype in the given world.

## Definition

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

```csharp
public static EntityArchetype CreateArchetype(WorldUnmanaged world, ReadOnlySpan<ComponentType> types)
```

### Parameters

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

### Returns

| Type                                                                                 | Description                                    |
| ------------------------------------------------------------------------------------ | ---------------------------------------------- |
| [EntityArchetype](/engine/7000.0/script-reference/unity/entities/entityarchetype.md) | The archetype, which is only valid in `world`. |
