Method CreateArchetype
CreateArchetype(ComponentType[])
Creates an archetype from a set of component types.
Declaration
[NotBurstCompatible]
public EntityArchetype CreateArchetype(params ComponentType[] types)
Parameters
Type | Name | Description |
---|---|---|
ComponentType[] | types | The component types to include as part of the archetype. |
Returns
Type | Description |
---|---|
EntityArchetype | The EntityArchetype object for the archetype. |
Remarks
Creates a new archetype in the ECS framework's internal type registry, unless the archetype already exists.
CreateArchetype(NativeArray<ComponentType>)
Creates an archetype from a set of component types.
Declaration
public EntityArchetype CreateArchetype(NativeArray<ComponentType> types)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<ComponentType> | types | The component types to include as part of the archetype. |
Returns
Type | Description |
---|---|
EntityArchetype | The EntityArchetype object for the archetype. |
Remarks
Creates a new archetype in the ECS framework's internal type registry, unless the archetype already exists.