Generated content
Everything Terrain Sampler makes is ordinary engine content. You can edit it, move it, and ship it like anything you built by hand.
In your level
| Actor | What it is |
|---|---|
| Landscape (one per tile) | A native, sculptable ALandscape with roads graded in and the terrain material applied. |
TerrainSampler_RoadDetails | Curbs, sidewalks, bike lanes and grass parkways as static meshes, with collision. |
TerrainSampler_RoadMarkingVolume | The runtime virtual texture volume that draws lane markings, crosswalks and stop bars onto the road surface. |
TerrainSampler_PlayerStart | A spawn point in a street lane near the center of the footprint. |
In your project
Generated meshes are saved under /Game/TerrainSampler/Generated/ as they're built. Materials and textures come from the plugin's own content folder.
Packaging
The tool itself is editor-only, but everything it generates ships. Landscapes, static meshes and the plugin's materials cook into packaged builds, and a generated level looks the same in a packaged game as it does in the editor.
Keep the plugin enabled in projects you package, so its materials and textures are cooked along with the level.
Shipping generated roads? OpenStreetMap's license asks for a credit line. See Crediting map data.
Cleaning up old meshes
When you Replace terrain, the replaced run's meshes are deleted once you save the level without them. If you choose No (keep), or close the level without saving, nothing is deleted.
Meshes can still pile up, for example from runs you never saved. To clear them out, choose Terrain Sampler → Delete Unused Generated Meshes…. It lists what it found and asks before deleting. It only removes meshes in /Game/TerrainSampler/Generated/ that no saved asset references and the open level doesn't use.
Console commands
For automation and batch work, the same operations are available from the editor console:
# Generate a lat/lon box without the UI
TerrainSampler.Generate <MinLat> <MinLon> <MaxLat> <MaxLon> [Roads=1] [Buildings=0] [Textures=0]
# (Buildings is reserved for the upcoming buildings update)
# Example: a block of Santa Monica with roads
TerrainSampler.Generate 34.010 -118.500 34.028 -118.478 1 0 0
# Delete unused generated meshes without the confirmation dialog
TerrainSampler.DeleteUnusedMeshes
TerrainSampler.Generate builds 1, 4 or 9 tiles, whichever footprint (2, 4 or 6 km a side) is closest to the longer side of your box. A box that isn't square is widened to a square about its center. Unlike the picker, it replaces existing generated terrain without asking.