|
Post by mcarriere on Oct 28, 2015 22:15:09 GMT
We have a pretty simple setup:
We have a MasterAudio object and a PlaylistController object in our MainMenu scene. MasterAudio is set to persist across scenes.
Once we change from MainMenu to GameScene back to MainMenu, we get this error in our console:
Surprisingly, this does not happen in editor, but does happen during a normal build.
All we're doing during a scene change is the following:
MasterAudio.StopAllPlaylists ();
if (this.SceneToLoad == LoadingScreenManager.gameScene) { MasterAudio.ChangePlaylistByName ("GamePlaylist"); } else if (this.SceneToLoad == LoadingScreenManager.mainMenuScene) { MasterAudio.ChangePlaylistByName ("MainMenuPlaylist"); }
MasterAudio.FadeAllPlaylistsToVolume (0.15f, 1f);
Another issue we're having is as follows: when we try to visit the MainMenuScene, we have an object that has the following in a Start() method on a Monobehavior:
MasterAudio.PlaylistMasterVolume = GameSettings.Instance.MusicVolume; MasterAudio.MasterVolumeLevel = GameSettings.Instance.EffectsVolume;
and we're getting the error:
Any help would be appreciated.
|
|
|
Post by DarkTonic Dev on Oct 29, 2015 2:22:57 GMT
More often than not, I'm not able to reproduce bugs described by users from a description alone. So I no longer try since it takes longer to resolve that way. Instead, you'll need to send me an example project that reproduces one or both of these error, and I'll take a look. New bug reporting rules are located here (just made a sticky): darktonic.freeforums.net/thread/354/new-official-bug-reporting-rulesAlso, if it doesn't happen in the editor, how do I reproduce the problem once I have your project? Do both of these errors not happen in the editor?
|
|
|
Post by mcarriere on Oct 30, 2015 0:17:44 GMT
Thanks for the info.
I went through the trouble of attempting to setup a repro case in order to make it work, and I wasn't able to get it to occur on a much lighter-weight project.
Either way, I was able to resolve my issues by putting both the MasterAudio and the PlaylistController in a preload scene.
|
|
|
Post by DarkTonic Dev on Oct 30, 2015 3:32:36 GMT
Ok, that's cool. That also happens quite a bit, that while reconstructing the problem bit you figure it out yourself. So it's a win-win!
|
|