Jump to content

Auto Move Ambience Manager Question & Don't Destroy on Load


hatean

Recommended Posts

Hi!

I love this asset and am setting it up to use it as a general Audio Manager in my game, for playing all music and SFX. On this point, I have three issues:

  1. I have a persistent managers scene that is loaded additively and persists throughout the game. Instead of using DontDestroyOnLoad() on my persistent managers, I simply put them in that scene. My Audio Manager and Ambience Manager is on this scene. So I do not need DontDestroyOnLoad() in Ambience Manager, although I cannot find an option for it, is there any? I can manually comment out DontDestroyOnLoad() lines in the script but am wondering if that would cause other issues.
  2. Is it really necessary to move Ambience Manager to the tracked player object? I set up a scene and set the player object but did move Ambience Manager to it. It seems to work fine, including for triggering sequences in audio areas.
  3. Despite the fact that I am not moving Ambience Manager when loading my actual game scene from menu, there is a slight disruption in the sequence during scene load. The music essentially stops a few seconds during scene load and then continues, which bugs my ears. Is there a solution for this? Or loading scenes async will always cause this issue? I noticed Ambience Manager finds audio areas when my main scene loads so it might be doing some init operation but I cannot find out what exactly is happening there.

I am using version 1.2.10-c5 and here is how Ambience Manager looks in my scene:

spacer.png

Thanks a ton for your time in advance!

Link to comment
Share on other sites

  • 2 weeks later...

You could comment it out, but we had an issue where some cases it would need to transfer from scene to scene. 
It would also destroy when it needed to be kept. This is a classic case of different use cases, you should be fine commenting this out. 

 

Link to comment
Share on other sites

Thanks a ton Bryan! I know my post was long but can you please also respond to items 2 and 3 (I quoted below for convenience):

Quote
  1. Is it really necessary to move Ambience Manager to the tracked player object? I set up a scene and set the player object but did move Ambience Manager to it. It seems to work fine, including for triggering sequences in audio areas.
  2. Despite the fact that I am not moving Ambience Manager when loading my actual game scene from menu, there is a slight disruption in the sequence during scene load. The music essentially stops a few seconds during scene load and then continues, which bugs my ears. Is there a solution for this? Or loading scenes async will always cause this issue? I noticed Ambience Manager finds audio areas when my main scene loads so it might be doing some init operation but I cannot find out what exactly is happening there.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

×
×
  • Create New...