Is there a way to tie audio sources in the world to the volume controls?
Miuratale : coming 2024
Miuratale
  • No, you'd have to use a custom component for that:
    public class ORKAudioSource : MonoBehaviour
    {
    protected AudioSource source;

    protected void Update()
    {
    if(this.source != null)
    {
    this.source.volume = ORK.Game.SoundVolume;
    }
    }
    }


    Sadly, AudioSource is a sealed class, otherwise it'd be easier to just make an alternative ORK audio source, i.e. having this in one component :)
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • ah okay, I considered just making a handful of common environmental sfx events
    Miuratale : coming 2024
    Miuratale
Sign In or Register to comment.