public void OnGUI() { EditorGUIUtility.hierarchyMode = true; lightmapSettings.Update(); m_ScrollPosition = EditorGUILayout.BeginScrollView(m_ScrollPosition); EditorGUILayout.PropertyField(m_LightingSettingsAsset); EditorGUILayout.Space(); GUILayout.BeginHorizontal(); GUILayout.FlexibleSpace(); if (GUILayout.Button(Styles.newLightingSettings, GUILayout.Width(170))) { Lightmapping.lightingSettingsInternal = new LightingSettings(); Lightmapping.lightingSettingsInternal.CreateAsset(); } GUILayout.EndHorizontal(); EditorGUILayout.Space(); m_BakeSettings.OnGUI(); WorkflowSettingsGUI(); EditorGUILayout.EndScrollView(); EditorGUILayout.Space(); lightmapSettings.ApplyModifiedProperties(); }
public void OnGUI() { EditorGUIUtility.hierarchyMode = true; lightmapSettings.Update(); m_ScrollPosition = EditorGUILayout.BeginScrollView(m_ScrollPosition); EditorGUILayout.PropertyField(m_LightingSettingsAsset); EditorGUILayout.Space(); GUILayout.BeginHorizontal(); GUILayout.FlexibleSpace(); if (GUILayout.Button(Styles.newLightingSettings, GUILayout.Width(170))) { var ls = new LightingSettings(); ls.name = "New Lighting Settings"; Undo.RecordObject(m_LightmapSettings.targetObject, "New Lighting Settings"); Lightmapping.lightingSettingsInternal = ls; ProjectWindowUtil.CreateAsset(ls, (ls.name + ".lighting")); } GUILayout.EndHorizontal(); EditorGUILayout.Space(); m_BakeSettings.OnGUI(); WorkflowSettingsGUI(); EditorGUILayout.EndScrollView(); EditorGUILayout.Space(); lightmapSettings.ApplyModifiedProperties(); }
public void OnGUI() { EditorGUIUtility.hierarchyMode = true; lightingEditor.OnInspectorGUI(); m_BakeSettings.OnGUI(); OtherSettingsGUI(); DebugSettingsGUI(); }
public void OnGUI() { EditorGUIUtility.hierarchyMode = true; lightmapSettings.Update(); m_ScrollPosition = EditorGUILayout.BeginScrollView(m_ScrollPosition); LightingSettingsGUI(); m_BakeSettings.OnGUI(); WorkflowSettingsGUI(); EditorGUILayout.EndScrollView(); EditorGUILayout.Space(); lightmapSettings.ApplyModifiedProperties(); }
public void OnGUI() { EditorGUIUtility.hierarchyMode = true; m_ScrollPosition = EditorGUILayout.BeginScrollView(m_ScrollPosition); if (!SupportedRenderingFeatures.active.overridesEnvironmentLighting) { environmentEditor.OnInspectorGUI(); } m_BakeSettings.OnGUI(); OtherSettingsGUI(); DebugSettingsGUI(); EditorGUILayout.EndScrollView(); EditorGUILayout.Space(); Buttons(); Summary(); }