Search Unity

Question Press "Generate Lighting" with an editor script

Discussion in 'Global Illumination' started by petey, Sep 13, 2021.

  1. petey

    petey

    Joined:
    May 20, 2009
    Posts:
    1,824
    Hi there,

    Just wondering if there's a way to generate lighting through an editor script? I'm just trying to set up little script that goes through and automates a bunch of render settings and I couldn't figure this out.

    Screen Shot 2021-09-13 at 11.31.18 am.png
    I just want the script to do the same as clicking this button.
    Any ideas?

    Thanks,
    Pete
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,794
  3. petey

    petey

    Joined:
    May 20, 2009
    Posts:
    1,824