Method CreateArchetype
CreateArchetype(params ComponentType[])
Creates an archetype from a set of component types.
Declaration
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.