Game Development Reference
In-Depth Information
Figure 2-44. The BigTree in the Inspector
Because it's a prefab—and in this case a single gameObject, not just an imported asset—you
can see its components in the Inspector along with its preview. In the Tree component, where you
can see the icons for its various nodes, you can see that it has 3516 tris and two materials. Unity
recommends that a terrain tree be no more than 2000 tris. It also limits terrain trees to two materials.
Typically, the material for leaves and branches uses transparency, and the other material is for
bark. Unity also has a few shaders designed especially for terrain trees. This tree wasn't created
specifically for use in the terrain, but with a slight adjustment it will work. Let's load both trees in the
Terrain's Place Trees section.
3.
Select the Terrain.
4.
Click on the Place Trees button.
 
Search WWH ::




Custom Search