Search Unity

How to set GI params on terrain via code?

Discussion in 'World Building' started by hippocoder, Mar 29, 2019.

  1. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Must be missing something obvious. We have to regularly construct terrains from code (64 of them) and redo that from time to time.

    Going through 64 terrains and setting the gi params is getting super duper thin.

    Any suggestions please?
     
  2. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    Look at the inspector source and se how it is set. You can probably access the same internal classes with reflection.