Exemplo n.º 1
0
        // 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();
        }
Exemplo n.º 2
0
        public void Update()
        {
            serializedLightDatas.Update();
            serializedShadowDatas.Update();
            settings.Update();

            ResolveLightShape();
        }
Exemplo n.º 3
0
        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();
        }