Unity Levels & TileMap 🧸


TileMap

A tilemap is a grid in which each cell is an image called a tile. It's a common way to create 2D Levels. They can be Rectangular or Isometric. TileMaps can be created using external tools such as Tiled.

From the editor, you can:

  • Create a Palette
  • Create Tile Layers (ex: Ground, Props, etc.)
  • Place the tiles on the tilemap

Creating Layers allows us to superpose tiles. In Unity, we create a Grid, and each tilemap is a layer.

πŸ“š See also: the property Order in Layer.


Terrain

A terrain is a game object used to create large outdoor realistic landscapes. It's used in 3D Levels.


πŸ‘» To-do πŸ‘»

Stuff that I found, but never read/used yet.

Terrains:

  • Terrain settings: you may change material to legacy diffuse
  • Terrain Texture: add both the texture and its normal map. Target strength and opacity to put textures one above another
  • increase height (shift decrease) => soften
  • 5th icon is a tree, 6th is a leaf+leaf group?

Lighting

  • auto generate: disable if level goes darker
  • render Mode => auto/important/not pixel/vertex
  • shader
  • lightning => Environment => source: color
  • cast shadow (mesh rendered) off for walls (wall is not casting shadows on the player)
  • shadow type: hard => projected on the wall
  • light with the sun transparent (mesh)