# GSplatResource

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-resource.js#L30

A Gaussian splat resource that stores uncompressed splat data. Created when loading uncompressed
PLY files and glTF files with the `KHR_gaussian_splatting` extension, and for compressed PLY or
SOG files whose asset data sets `decompress` to true.

## Accessors

### extras

```ts
get extras(): any
```

Application-defined data stored with the splat file, as in glTF's `extras`: the `extras`
value of a SOG's meta.json. The engine attaches no meaning to it. Undefined when the file
has none, and for formats that cannot carry it.

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

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