From 6a5f22400d764edf46fde80b5e3f8df77e568659 Mon Sep 17 00:00:00 2001 From: xxSeys1 Date: Wed, 5 Feb 2025 12:35:49 +0100 Subject: [PATCH] update volume slider in game panel on menu show --- Source/Editor/Windows/GameWindow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/Windows/GameWindow.cs b/Source/Editor/Windows/GameWindow.cs index 6561083f9..5bff8db69 100644 --- a/Source/Editor/Windows/GameWindow.cs +++ b/Source/Editor/Windows/GameWindow.cs @@ -691,7 +691,7 @@ namespace FlaxEditor.Windows { var button = menu.AddButton("Audio Volume"); button.CloseMenuOnClick = false; - var slider = new FloatValueBox(1, 140, 2, 50, 0, 1) { Parent = button }; + var slider = new FloatValueBox(AudioVolume, 140, 2, 50, 0, 1) { Parent = button }; slider.ValueChanged += () => AudioVolume = slider.Value; }