Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Terrain Request for More API Access

Discussion in 'World Building' started by Mortalanimal, Mar 27, 2021.

  1. Mortalanimal

    Mortalanimal

    Joined:
    Jun 7, 2014
    Posts:
    454
    Hi, could you please give up more Access to the terrain Data please!

    "terrainData.treeInstances.color" & "terrainData.treeInstances.lightmapColor", are both vague, what they are actually doing are finding all materials on the tree instances, and setting the color, this is a problem when you end up changing the color of the bark and the leaves. Perhaps one might only want to change the color of the leaves and not the bark?

    Please return an array instead of setting the color to all materials on the tree instance, we need the flexibility.

    for example: terrainData.treeInstances.colors[0].color

    Thank you!
     
  2. Mortalanimal

    Mortalanimal

    Joined:
    Jun 7, 2014
    Posts:
    454
unityunity