private void DeveloperBuildEnlightenSettings(SerializedObject so)
{
if (Unsupported.IsDeveloperBuild())
{
this.m_ShowDevOptions = EditorGUILayout.Foldout(this.m_ShowDevOptions, "Debug [internal]", true);
if (this.m_ShowDevOptions)
{
SerializedProperty property = so.FindProperty("m_GISettings.m_BounceScale");
SerializedProperty property2 = so.FindProperty("m_GISettings.m_TemporalCoherenceThreshold");
EditorGUI.indentLevel++;
Lightmapping.concurrentJobsType = (Lightmapping.ConcurrentJobsType) EditorGUILayout.IntPopup(styles.ConcurrentJobs, (int) Lightmapping.concurrentJobsType, this.kConcurrentJobsTypeStrings, this.kConcurrentJobsTypeValues, new GUILayoutOption[0]);
Lightmapping.enlightenForceUpdates = EditorGUILayout.Toggle(styles.ForceUpdates, Lightmapping.enlightenForceUpdates, new GUILayoutOption[0]);
Lightmapping.enlightenForceWhiteAlbedo = EditorGUILayout.Toggle(styles.ForceWhiteAlbedo, Lightmapping.enlightenForceWhiteAlbedo, new GUILayoutOption[0]);
Lightmapping.filterMode = (FilterMode) EditorGUILayout.EnumPopup(EditorGUIUtility.TempContent("Filter Mode"), Lightmapping.filterMode, new GUILayoutOption[0]);
EditorGUILayout.Slider(property, 0f, 10f, styles.BounceScale, new GUILayoutOption[0]);
EditorGUILayout.Slider(property2, 0f, 1f, styles.UpdateThreshold, new GUILayoutOption[0]);
GUILayoutOption[] options = new GUILayoutOption[] { GUILayout.Width(this.kButtonWidth) };
if (GUILayout.Button("Clear disk cache", options))
{
Lightmapping.Clear();
Lightmapping.ClearDiskCache();
}
GUILayoutOption[] optionArray2 = new GUILayoutOption[] { GUILayout.Width(this.kButtonWidth) };
if (GUILayout.Button("Print state to console", optionArray2))
{
Lightmapping.PrintStateToConsole();
}
GUILayoutOption[] optionArray3 = new GUILayoutOption[] { GUILayout.Width(this.kButtonWidth) };
if (GUILayout.Button("Reset albedo/emissive", optionArray3))
{
GIDebugVisualisation.ResetRuntimeInputTextures();
}
GUILayoutOption[] optionArray4 = new GUILayoutOption[] { GUILayout.Width(this.kButtonWidth) };
if (GUILayout.Button("Reset environment", optionArray4))
{
DynamicGI.UpdateEnvironment();
}
EditorGUI.indentLevel--;
}
}
}