# GSplatOctreeResource

Class · category: Graphics

Source: https://github.com/playcanvas/engine/blob/95c49bde59c2bfca2928a8ab38dd6e1b6fb4057e/src/scene/gsplat-unified/gsplat-octree.resource.js#L12

A Gaussian splat resource for streamed level-of-detail data, created when loading a
`lod-meta.json` or `.lcc2` file. Its splats are loaded in chunks on demand, based on the view
distance and the splat budget.

## Properties

### data

```ts
data: any
```

Raw parsed manifest data, retained for consumers that read custom or extension
fields the octree itself does not consume (for example application-specific
metadata accompanying a `lod-meta.json`). Its `tree` field is null, as the node hierarchy
is consumed when the resource is created.

## Accessors

### aabb

```ts
get aabb(): BoundingBox
```

Gets the bounding box of the splats, in the local space of the resource. It is read from the
level-of-detail data; use [GSplatComponent#customAabb](https://api.playcanvas.com/engine/classes/GSplatComponent.md#customaabb) to override the bounds of a
component.

### antiAlias

```ts
get antiAlias(): boolean
set antiAlias(value: boolean)
```

Gets whether the splats were trained with anti-aliasing.

### extras

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

Application-defined data stored with the streamed splat scene, as in glTF's `extras`: the
`extras` value of its lod-meta.json. The engine attaches no meaning to it. Undefined when
the manifest has none.

### numSplats

```ts
get numSplats(): number
```

Total number of splats across all leaf nodes at the highest LOD (LOD 0) — the full-detail
splat count of the captured scene. Not all of these are resident at runtime: the LOD
streaming system selects a subset per node based on view distance and the configured
splat budget.

## Methods

### destroy

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

Destroys the octree resource and cleans up all associated resources.
