void UpdateCurrentBakingSky() { SkySettings newBakingSky = GetSkyFromIDAndVolume(m_BakingSkyUniqueID, m_Profile); if (newBakingSky != m_BakingSky) { SkyManager.UnRegisterBakingSky(m_BakingSky); if (newBakingSky != null) SkyManager.RegisterBakingSky(newBakingSky); m_BakingSky = newBakingSky; } }
void OnDisable() { SkyManager.UnRegisterBakingSky(m_BakingSky); m_BakingSky = null; }