Search Unity

How to script-wise disable a terrain grass layer during runtime?

Discussion in 'World Building' started by rob_vld, Jul 19, 2019.

  1. rob_vld

    rob_vld

    Joined:
    Jul 9, 2013
    Posts:
    191
    manually updating terrain data by setting terrainData.SetDetailLayer(); will overwrite actual current data so this is not an option...

    Thanks.
     
  2. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    2,251
    There is Terrain.drawTreesAndFoliage however that will also disable trees - which I'm guessing isn't what you are after... The other option is to set the detail draw distance to 0.