The demo island

Worldprint comes with a demo scene: a 3 km island with mountains, a lake, a river, farmland, a port town, villages and a castle. Its map is already baked, with a minimap and a world map, so you can see Worldprint at work before you bake your own scene.

Open the scene Assets/WorldprintDemo/DemoIsland.unity and press Play.

Fly over the island

Key

What it does

Right mouse button (hold)

Look around.

W, A, S, D

Fly forward, left, back, right.

Q, E

Go down, go up.

Shift (hold)

Fly faster.

Mouse wheel

Change the flying speed (over the minimap: zoom the minimap).

1 to 7

Fly to a viewpoint: the port, the whole island, the castle, the lake, the farmland, the lighthouse, the summit.

M

Open or close the world map.

T

Switch the theme of both maps.

H

Hide the interface, for clean screenshots.

The minimap follows the camera and turns with it; the triangle on its border points north. Scroll over the minimap to zoom it.

How the scene is marked up

Each part of the island uses the components described in Mark up your scene. Select an object in the Hierarchy to see how it is set up.

On the map

In the scene

How

Relief, contours

Terrain

Read from the terrain, nothing to add.

Grass, sand, rock, snow, fields, marsh

The terrain layers

Their names say what they are: Grass, Sand, Rock, Snow, Field Wheat, Mud. The Dirt Path layer is not land cover, so it is not drawn.

Forests, tree dots

The terrain trees

Read from the terrain. Their prefabs are named Tree_…; the rocks, painted as terrain trees too, are not trees and stay off the map.

Buildings

Every house, the church, the castle walls and towers

Map Building on each one. A windmill’s sails are a separate object, so only its tower makes the footprint.

The sea

Water > Sea, one large plane

Map Object, Shape Polygon, Layer water, class ocean. The map keeps the part lower than the water.

The lake

Water > Mirror Lake

Map Polygon, Layer water, class lake, drawn along the shore.

The river

Water > Silver River

A river goes downhill, so its water is a stair of Map Polygon steps (Map Water Steps), each at the level of its upstream end.

Roads and streets

Roads

Map Line, Layer road, with a class (primary, secondary, track, street) in Metadata.

Piers

Port Aster > Harbour

Map Object, Shape Polygon, Layer pier.

Place names and icons

Map Labels

Map Label with a text and an icon (harbor, castle, mountain…).

Minimap and world map

Interface

Added with Add Minimap and GameObject > Worldprint > World Map.

The camera’s DemoIslandTour script shows the map API at work: LoadStyle switches the theme, and the world map is shown and hidden with SetActive.

Change the island

Move a house, add a Map Label, or repaint the terrain, then click Rebake in Window > Worldprint. The map is written to Assets/StreamingAssets/Worldprint/DemoIsland/.

You do not need the demo in your game. To remove it, delete Assets/WorldprintDemo and Assets/StreamingAssets/Worldprint/DemoIsland.