Talk:SplashScreen
From Unify Community Wiki
(Difference between revisions)
m (I figured out how to remove the Audio Listener error, it requires that the audio listener is removed from the Camera in the beginning. This is a pretty bad work around if you want to have music/sound) |
(Another way of getting around the Audio Listener Error) |
||
Line 1: | Line 1: | ||
− | I figured out how to remove the Audio Listener error, it requires that the audio listener is removed from the Camera in the beginning. This is a pretty bad work around if you want to have music/sound playing while fading between levels. --[[User:CorruptedHeart|CorruptedHeart]] 10:58, 7 September 2010 (PDT) | + | *I figured out how to remove the Audio Listener error, it requires that the audio listener is removed from the Camera in the beginning. This is a pretty bad work around if you want to have music/sound playing while fading between levels. --[[User:CorruptedHeart|CorruptedHeart]] 10:58, 7 September 2010 (PDT) |
+ | |||
+ | |||
+ | *I also figured out another way of doing it: | ||
+ | <csharp>if (Application.isLoadingLevel) | ||
+ | { | ||
+ | Destroy(oldCam.GetComponent<AudioListener>()); | ||
+ | Destroy(oldCam.GetComponent<GUILayer>()); | ||
+ | }</csharp> | ||
+ | Simply add that to the top of the OnUpdate function and it works... But will still interrupt sound once a level starts loading. --[[User:CorruptedHeart|CorruptedHeart]] 11:21, 7 September 2010 (PDT) |
Revision as of 18:21, 7 September 2010
- I figured out how to remove the Audio Listener error, it requires that the audio listener is removed from the Camera in the beginning. This is a pretty bad work around if you want to have music/sound playing while fading between levels. --CorruptedHeart 10:58, 7 September 2010 (PDT)
- I also figured out another way of doing it:
<csharp>if (Application.isLoadingLevel) { Destroy(oldCam.GetComponent<AudioListener>()); Destroy(oldCam.GetComponent<GUILayer>()); }</csharp> Simply add that to the top of the OnUpdate function and it works... But will still interrupt sound once a level starts loading. --CorruptedHeart 11:21, 7 September 2010 (PDT)