void InitializeScenarios(BakingSet set) { set.lightingScenarios = new List <string>() { ProbeReferenceVolume.defaultLightingScenario }; }
internal BakingSet CreateNewBakingSet(string name) { BakingSet set = new BakingSet(); // Initialize new baking set settings InitializeBakingSet(set, name); bakingSets.Add(set); return(set); }
void InitializeBakingSet(BakingSet set, string name) { var newProfile = ScriptableObject.CreateInstance <ProbeReferenceVolumeProfile>(); #if UNITY_EDITOR ProjectWindowUtil.CreateAsset(newProfile, name + ".asset"); #endif set.name = name; set.profile = newProfile; set.settings = ProbeVolumeBakingProcessSettings.Default; InitializeScenarios(set); }