Gui not showing when accessing AudioSource.Volume

I have

  • A GuiManager class
  • A SoundManager with 2 AudioSources
    • SfxPlayer is created in the inspector on the same object as SoundManager
    • MusicPlayer is created programatically within the SoundManager

If i from anywhere in the GuiManager access the volume of MusicPlayer then all the Gui dissapears. Nothing is shown, not even the start menu. I dont get any errors or exceptions. I dont have any Try Catch statements.

Anyone knows whats up?

The two things should not be related - I suspect that some runtime error in the volume control code is aborting the whole OnGUI function. Check this part of your code, and if nothing wrong is found post your GuiManager script.