BroAudio
Quick StartScripting APIAsset Store
  • Overview
    • Introduction
    • Getting Started
    • Compatibility
  • Core Features
    • Library Manager
      • Create The Library
      • Design The Sound
        • 🔊Volume
        • 🎚️Fading
        • 🔁Looping
        • 🎲Randomization
        • 💪Velocity
        • 🎛️Spatial & Mix
    • Audio Player
      • Music Player
      • Dominator Player
    • Playback Group
    • Audio Effect
    • No-Code Components
      • Sound Source
      • Sound Volume
      • Spectrum Analyzer
    • Addressables
    • Customization
  • Designs
    • Audio Mixer
  • Tools
    • Audio Clip Editor
    • Audio Effect Editor
    • Useful Attrubutes
  • Reference
    • Scripting API
      • Class
        • BroAudio
        • SoundSource
        • BroAdvice
      • Interface
        • IAudioPlayer
        • IMusicPlayer
        • IPlayerEffect
        • IAutoResetWaitable
        • IAudioSourceProxy
      • Struct
        • SoundID
        • Effect
        • Fading
      • Enums
        • BroAudioType
        • EffectType
        • StopMode
        • Transition
        • Ease
    • Unity API Integration
    • Audio Terminology
    • Technical Details
  • Others
    • Release Notes
    • Known Issues
      • Duplicate SoundID Issue
    • Roadmap
    • Support & Contact
Powered by GitBook
On this page
  • Apply On Enable
  • Reset On Disable
  • Fade Time
  • Slider
  • Volumes
  1. Core Features
  2. No-Code Components

Sound Volume

Controls the volume for a specified BroAudioType

Last updated 7 months ago

This component is particularly useful in the following situations

  1. Slider Binding: Easily bind this component to a to quickly implement volume control for your game.

  2. Quick Volume Adjustment: Temporarily adjust the volume of a specific audio type when an event occurs by enabling or disabling this component.

Apply On Enable

Check this box to automatically apply the volume setting whenever the GameObject is enabled.

Only Apply Once: Applies the settings only the first time the GameObject is enabled.

Reset On Disable

Check this box to automatically reset the volume back to the time before onEnable when the GameObject is disabled.

Fade Time

The duration it takes to reach the target volume.

Slider

Allow Boost: Check this box to allow volumes beyond 0dB.

Volumes

Audio Type: The target audio type to apply the volume to. You can select multiple types or set it to 'Everything' to act as a master volume control.

Volume: The volume level.

[Read] button: Converts the UI Slider value to volume.

[Set] button: Converts the volume to the UI Slider value.

[Edit in Playmode] button: Available in Playmode. If enabled, the volume applies directly to the system, useful for debugging.

Slider Type: Determines the scale of the slider, which will also affect the assigned in the Volumes list below.

Slider(optional): The component that syncs with the volume.

UnityEngine.UI.Slider
Unity UI Slider
UI slider