Search Unity

Terrain and place trees by black and white mask?

Discussion in 'Scripting' started by tr1te, Apr 27, 2015.

  1. tr1te

    tr1te

    Joined:
    Sep 5, 2012
    Posts:
    38
    How can i use unity3d terrain and place trees by black and white mask?

    I made script that create instantiate of tree and place it by using ray cast and mask. But when i scatter all terrain by trees, i have huge amount of object and it load the scene so long. I tried to use TerrainData.SetTreeInstance but i cant chage the position of TreeInstance.
     
  2. RabenFutter

    RabenFutter

    Joined:
    Dec 30, 2012
    Posts:
    38