Hi everyone,
Anyone else having trouble with assigning ambient sound tracks? Everything works fine - even when I build the game, but if I quit the editor then start it back up, load my project, the assignments I made using the "Ambient Storage" window are lost.
the console complains that no audio clips have been assigned to track 1.
AC version 1.72.3
Unity Version 2019.34f1
Any info greatly appreciated.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
OK, done some digging.
if I set up the tracks using the "Ambient Storage" editor - THEN if I look at the _SettingsManager in the inspector, the new entries are all present - as expected.
I thought there might be a problem with the "ambient storage" editor so I just entered the values directly in the _SettingsManager in the inspector. Still didnt save when I quit Unity.
I got it to work by first using the "Ambient Storage" editor, then going through the _SettingsManager in the inspector and clicking on each field and pressing return - forcing the inspector to update each slot... now the data is saved when I quit Unity.
Yuk. Tricky thing to try and explain, hope this helps track down the problem..
Sorry for the trouble.
It may be that the data isn't being marked as "dirty" so that Unity knows it needs saving. Try this: open up AC's SoundtrackStorageWindow script file, and insert the following at the very end of its SharedGUI function:
Does that resolve it?
Yep, that fixed it.
I had a feeling it was something to do with flagging dirty things..
Thanks!
(I'm amazed no one else has reported this until now.. no body using ambient sounds??)
Both ambience and music storage rely on the same codebase, and it's always worked on my end and others, even if the flag should be there.
Regardless, I'll see this change added officially in the next release - thanks for the bug report.