mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-26 05:50:18 +00:00
disable automatic light baking
This commit is contained in:
parent
7623eb6ff8
commit
a2dfe4fd8c
1 changed files with 3 additions and 0 deletions
|
@ -235,6 +235,9 @@ namespace SanAndreasUnity.Editor
|
||||||
|
|
||||||
EditorUtility.DisplayProgressBar("", "Preparing...", 0f);
|
EditorUtility.DisplayProgressBar("", "Preparing...", 0f);
|
||||||
|
|
||||||
|
// disable automatic light baking, otherwise Editor will be very slow after assets are loaded and will fill the whole memory
|
||||||
|
Lightmapping.giWorkflowMode = Lightmapping.GIWorkflowMode.OnDemand;
|
||||||
|
|
||||||
DayTimeManager.Singleton.SetTime(13, 0, true); // to make TOBJ objects visible
|
DayTimeManager.Singleton.SetTime(13, 0, true); // to make TOBJ objects visible
|
||||||
|
|
||||||
EditorUtility.ClearProgressBar();
|
EditorUtility.ClearProgressBar();
|
||||||
|
|
Loading…
Reference in a new issue