CreateArchetype(WorldUnmanaged, ReadOnlySpan<ComponentType>)
Creates an archetype in the given world.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public static EntityArchetype CreateArchetype(WorldUnmanaged world, ReadOnlySpan<ComponentType> types)
Parameters
The world to create the archetype in.
The component types of the archetype.
Returns
Type | Description |
|---|---|
| EntityArchetype | The archetype, which is only valid in |