Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Audio Question about Sound sources with culling

Discussion in 'Audio & Video' started by Shadowing, Jan 3, 2019.

  1. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,647
    when listener gets to far away from a audio source does the audio stop playing on the audio source?
    Just recently I built a thing that stopped audio from playing after a certain distance from it. But now I've been thinking maybe Unity does this already?

    This is for things that don't move in the game. Like frogs making a noise by a pound or a building making a sound.
     
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,589
    According to the following documentation, it seems unity culls audio voices.

    https://docs.unity3d.com/ScriptReference/AudioSource-isVirtual.html

    https://docs.unity3d.com/Manual/UpgradeGuide5-Audio.html
     
    Shadowing likes this.
  3. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,647
    Oh neat. Thanks a bunch man.