Skip to content

Home > @esengine/ecs-framework-monorepo > ComponentStorage > getDenseArray

ComponentStorage.getDenseArray() method

获取所有组件

Signature:

typescript
getDenseArray(): {
        components: T[];
        entityIds: number[];
    };

Returns:

{ components: T[]; entityIds: number[]; }

组件数组

基于 MIT 许可证发布