Quantcast
Channel: Questions in topic: "dontdestroyonload"
Viewing all articles
Browse latest Browse all 416

Gameobject DontDestroyonLoad references not working after changing scene

$
0
0
Hi, need help in referencing objects in the inspector. I have 2 scenes I,e main_menu and level. At scene main_menu there are a couple of game objects that are dontdestroyonload. on those objects sound effects and game music and scripts are attached. When I select the level from the main menu it works fine till now I can play game without any error or issue which is scene 2 l(named level 3). when I go back to scene 1 that is the main menu references in the inspector to the objects under objects remove or null it says missing object but object is present under dontdestroyonload . As in image 2. ![alt text][1] ![alt text][2] [1]: /storage/temp/188528-1.png [2]: /storage/temp/188529-2.png

Viewing all articles
Browse latest Browse all 416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>