Home > @esengine/ecs-framework-monorepo > ComponentStorage > getDenseArray
ComponentStorage.getDenseArray() method
获取所有组件
Signature:
typescript
getDenseArray(): {
components: T[];
entityIds: number[];
};
Returns:
{ components: T[]; entityIds: number[]; }
组件数组