Example #1
0
 void InitializeScenarios(BakingSet set)
 {
     set.lightingScenarios = new List <string>()
     {
         ProbeReferenceVolume.defaultLightingScenario
     };
 }
Example #2
0
        internal BakingSet CreateNewBakingSet(string name)
        {
            BakingSet set = new BakingSet();

            // Initialize new baking set settings
            InitializeBakingSet(set, name);
            bakingSets.Add(set);

            return(set);
        }
Example #3
0
        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);
        }