// The serialized property for color temperature is stored in the build-in light editor, and we need to use this object to apply the update. protected override void SetValueToPreset(SerializedProperty value, LightUnitSliderUIRange preset) { m_Settings.Update(); base.SetValueToPreset(value, preset); m_Settings.ApplyModifiedProperties(); }
public void Update() { serializedLightDatas.Update(); serializedShadowDatas.Update(); settings.Update(); ResolveLightShape(); }
public void Update() { // Case 1182968 // For some reasons, the is different cache is not updated while we actually have different // values for shadowResolution.level // So we force the update here as a workaround serializedLightDatas.SetIsDifferentCacheDirty(); serializedLightDatas.Update(); settings.Update(); ResolveLightShape(); }