I use different Graphics when doing a lightmap bake. Is there a way I can change the GraphicsTier settings (e.g. render mode from forward to deferred for tier3) via an editor script (not at runtime)? I’ve looked at: Unity - Scripting API: GraphicsTier but it doesn’t say anything about changing the individual tier variables. Right now I am changing the settings manually, but I do lightmap bakes many times during the day, so I was hoping to automate it.
If what you want to do isn’t possible in a script you could just setup and save various different ‘ProjectSettings\GraphicSettings.asset’ files and then write a small editor script to copy over the one you wanted before the light baking starts.
e.g. Copy ‘ProjectSettings\GraphicSettings_HardShadows.asset’ ‘ProjectSettings\GraphicSettings.asset’