- Home /
Make Sound Effects Not Audible Unless Near Them 2d?
I have a waterfall in my 2D game and want there to be sound effects of a waterfall, but only when my camera is near it. Right now I can hear it at all times, no matter how far away the camera is. I have been looking for a solution to this, but all I can find is how to adjust this for 3D and not 2D. Is there a way to do this in 2D?
Answer by cj31387 · Jul 11, 2015 at 01:33 AM
Just do it in 3d with stereo spread and adjust the sound roll-off to the length in meters you want. Unity 2d isn't really exactly 2d, its pseudo 2d. GameObjects use a transform of Vector3, sure the colliders2d are 2d but the gameobject is still 3d.
Your answer
Follow this Question
Related Questions
Attach audio source to different part of object 0 Answers
Sound volume: How to ignore distance between source and listener? 2 Answers
Pitch changes when i get closer to object with audio source 1 Answer
2D game - how to optimize performance for audio when you do not need 3D audio? 1 Answer
3d Sound not working? 1 Answer