O'Reilly logo

Unity 5.x Game Development Blueprints by John P. Doran

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding trees

Hills typically aren't just grass, vegetation can be used to block player's visibility as well as give a better look for our environment:

  1. With that finished, go back to our Terrain object and then click on the Place Trees mode button (the one that looks like two trees).

    Note

    To check the names of each button, you can hold the mouse over the image for a second before it'll display what it is.

  2. Just like working with painting textures. There are no trees by default, so click on Edit Trees… | Add Tree.
  3. From the window that pops up, set the Tree Prefab by going to the Project tab and then going to Standard Assets\Environment\SpeedTree\Broadleaf and select Broadleaf_Desktop and then Add.
  4. Next, under Settings, change Tree Density to 15 and then ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required