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);
}