A simple and ready-to-use volume slider plugin for Godot 4. It provides HVolumeSlider and VVolumeSlider nodes that directly control the volume of any audio bus.
- Dynamic Bus Selection: Select the audio bus from a dropdown list in the Inspector, which is automatically populated with your project's actual audio buses.
- Horizontal & Vertical Slider :
- Automatic dB Conversion: Automatically converts the slider's linear value (by default 0-100) to the logarithmic dB scale used by Godot's
AudioServer.- The conversion is based on the slider's range. The slider's
max_valueis mapped to full volume (0 dB), while itsmin_valueis mapped to silence (-60db).
- The conversion is based on the slider's range. The slider's
- Auto-Mute: Automatically mutes the bus when the volume is set to its minimum value.
- Volume Signal: Emits a
volume_changed(volume_db)signal whenever the volume is adjusted.
- Open the AssetLib tab in the Godot editor.
- Search for "Volume Slider".
- Click Download, and then Install.
- Enable the plugin in Project -> Project Settings -> Plugins.
- Download the latest release from the GitHub repository's releases page.
- Extract the
addonsfolder from the ZIP file. - Place the
addonsfolder in your project's root directory. - Enable the plugin in Project -> Project Settings -> Plugins.
- After enabling the plugin, two new nodes will be available :
HVolumeSliderandVVolumeSlider. - Add one of these nodes to your scene.
- In the Inspector, find the Bus Name property.
- Select the desired audio bus from the dropdown list (e.g., "Master", "Music", "SFX").
- That's it! The slider will now control the volume of the selected bus when the game is running.
This plugin is released under the MIT License. See the LICENSE file for more details.