|
Post by aikitect on Jun 21, 2024 4:31:01 GMT
Hi I have a scene where I want to use an ambient sound. I've attached the AmbientSound script to an object, but when my character goes near the object, no sound plays. If I use an EventSounds script with an OnEnable trigger, then it works just fine. I've made sure to set the Physics collisions so that Ignore Raycast can collide with Ignore Raycast. Are there other parameters that I need to consider to make AmbientSound work?
|
|
|
Post by DarkTonic Dev on Jun 23, 2024 15:01:46 GMT
Ambient Sound will only play the sound if it's close enough. It depends on where your Audio Listener is. If it's not on your character, that will matter. "Too far" means the distance of your Ambient Sound to the Listener. If that exceeds the Max Distance of the Audio Source of the sound selected on Ambient Sound, it will not play. So look into that and change your Max Distance if needed.
|
|