# GSplatCompressedResource

Class · extends [`GSplatResourceBase`](https://api.playcanvas.com/engine/classes/GSplatResourceBase.md) · category: Graphics

Source: https://github.com/playcanvas/engine/blob/64089771243fe28a9b9d2b4de538b99b07c75097/src/scene/gsplat/gsplat-compressed-resource.js#L28

A Gaussian splat resource that stores splat data in the compressed PLY format. Created when
loading compressed PLY files, unless their asset data sets `decompress` to true.

## Methods

### destroy

```ts
destroy(): void
```

Destroys this resource. If the resource is still in use by the sorter, destruction is
automatically deferred until it's safe.

## Inherited from [GSplatResourceBase](https://api.playcanvas.com/engine/classes/GSplatResourceBase.md)

- `protected _aabb: BoundingBox`
- `get aabb(): BoundingBox`
- `get antiAlias(): boolean` · `set antiAlias(value: boolean)`
- `set centers(value: Float32Array<ArrayBufferLike> | null)`
- `get extras(): any`
- `get format(): GSplatFormat`
- `get numSplats(): number`
- `get textureDimensions(): Vec2`
- `protected _actualDestroy(): void`
- `getTexture(name: string): Texture | null`

## Inherited from [GSplatSogResource](https://api.playcanvas.com/engine/classes/GSplatSogResource.md)

- `protected _centers: Float32Array<ArrayBufferLike> | null`
