Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

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