- Home /
Ad no longer ready/available after loading new scene. (Unity Ads)
Hi there. I use Unity Ads. I have two scenes:
Menu scene
Game scene
In the Menu scene, my ad manager object loads an ad until it's ready. However, if I load the Game scene after an ad is ready in the Menu scene, no ad is ready in the Game scene anymore.
In other words: The ad-ready progress resets when switching scenes.
Is that supposed to happen? How would I fix it?
Answer by jtok4j · Sep 14, 2020 at 07:44 PM
I believe that you need to set the Ad Management on the first scene of your game, and set it's gameobject to not unload upon scene change using: https://docs.unity3d.com/ScriptReference/Object.DontDestroyOnLoad.html
Hope this helps,
Keep On Creating!
Justin
Your answer
Follow this Question
Related Questions
How Do I Link Different Scenes? 4 Answers
Change Scene keeping Character and GUI Canvas 1 Answer
Can't find game object / script after scene re-enter 1 Answer
Scene Loading Issue. 0 Answers
Unity Scene loading problem (slow loading until it freezes) 0 Answers