Table of Contents

BRG Terrain Detail Override


Substitutes a terrain detail prototype with a different prefab at editor time. Add this component to the detail prototype prefab referenced by your terrain.

Why

Default Unity terrain detail prototypes are single-mesh prefabs with no LOD support. This component lets you swap in a replacement prefab — typically one with an LOD Group — so terrain details benefit from LOD transitions and crossfade.

Setup

  1. Select the prefab assigned as a terrain detail prototype
  2. Add the BRG Terrain Detail Override component
  3. Assign your replacement prefab to the Override Prefab field
Property Type Description
Override Prefab GameObject The replacement prefab to use for rendering. Should have a MeshRenderer or LOD Group.

How It Works

The BRG Terrain Registerer resolves all overrides at editor time. When it encounters a detail prototype that has a BRG Terrain Detail Override component, it uses the override prefab instead for all rendering. The resolved prefab list is shown read-only in the terrain registerer inspector.

Convert To Terrain Prefab

If you already have complex prefabs with LOD Groups and want to use them as terrain details, use the Tools > BRG Instanced Renderer > Convert To Terrain Prefab menu item. Select one or more source prefabs in the Project window and run the tool — it generates simplified single-mesh prefabs in a TerrainDetailPrefab subfolder next to each source, each already wired with a BRG Terrain Detail Override pointing back to the original.

Assign the generated prefabs as your terrain's detail prototypes — BRG will render the original complex version at runtime.