UnityEditor.SerializedObject.SetIsDifferentCacheDirty C# (CSharp) Method

SetIsDifferentCacheDirty() private method

private SetIsDifferentCacheDirty ( ) : void
return void
        public extern void SetIsDifferentCacheDirty();
        /// <summary>

Usage Example

Ejemplo n.º 1
0
        bool ContributeGISettings()
        {
            if (isPreset)
            {
                EditorGUILayout.Toggle(Styles.contributeGI, true);
                return(true);
            }

            bool contributeGI = (m_StaticEditorFlags.intValue & (int)StaticEditorFlags.ContributeGI) != 0;
            bool mixedValue   = (m_StaticEditorFlags.hasMultipleDifferentValuesBitwise & (int)StaticEditorFlags.ContributeGI) != 0;

            EditorGUI.showMixedValue = mixedValue;

            EditorGUI.BeginChangeCheck();
            contributeGI = EditorGUILayout.Toggle(Styles.contributeGI, contributeGI);

            if (EditorGUI.EndChangeCheck())
            {
                SceneModeUtility.SetStaticFlags(m_GameObjectsSerializedObject.targetObjects, (int)StaticEditorFlags.ContributeGI, contributeGI);
                m_GameObjectsSerializedObject.SetIsDifferentCacheDirty();
                m_GameObjectsSerializedObject.Update();
            }

            EditorGUI.showMixedValue = false;

            return(contributeGI && !mixedValue);
        }
All Usage Examples Of UnityEditor.SerializedObject::SetIsDifferentCacheDirty