Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Graphics/Shared/Inspector/SettingsInspector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ internal static class SettingsInspector
private const float FOVMin = 10f;
private const float FOVMax = 120f;
private const float FOVDefault = 23.5f;
private static Vector2 settingsScrollView;

internal static void Draw(CameraSettings cameraSettings, GlobalSettings renderingSettings, bool showAdvanced)
{
GUILayout.BeginVertical(GUIStyles.Skin.box);
{
settingsScrollView = GUILayout.BeginScrollView(settingsScrollView);
Label("Camera", "", true);
cameraSettings.ClearFlag = Selection("Clear Flags", cameraSettings.ClearFlag, flag => cameraSettings.ClearFlag = flag);
if (showAdvanced)
Expand Down Expand Up @@ -74,6 +76,7 @@ internal static void Draw(CameraSettings cameraSettings, GlobalSettings renderin
Slider("Window Height", Inspector.Height, 400, Screen.height, size => Inspector.Height = size);
GUILayout.Space(10);
Toggle("Show Advanced Settings", renderingSettings.ShowAdvancedSettings, false, advanced => renderingSettings.ShowAdvancedSettings = advanced);
GUILayout.EndScrollView();
}
GUILayout.EndVertical();
}
Expand Down