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 |
---|---|---|
Component |
types | The component types to include as part of the archetype. |
Returns
Type | Description |
---|---|
Entity |
The EntityArchetype object for the archetype. |
Remarks
Creates a new archetype in the ECS framework's internal type registry, unless the archetype already exists.