public void OnEnable()
{
m_BakeSettings = new LightingWindowBakeSettings();
m_BakeSettings.OnEnable();
m_ShowWorkflowSettings = new SavedBool("LightingWindow.ShowWorkflowSettings", true);
m_ShowProbeDebugSettings = new SavedBool("LightingWindow.ShowProbeDebugSettings", false);
string configDeviceAndPlatform = EditorUserSettings.GetConfigValue("lightmappingDeviceAndPlatform");
if (configDeviceAndPlatform != null)
{
m_LightmapDeviceAndPlatform = Int32.Parse(configDeviceAndPlatform);
}
else
{
EditorUserSettings.SetConfigValue("lightmappingDeviceAndPlatform", "0");
}
}