Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

Dontdestroyonload breaks my scripts

$
0
0
I'm trying to use dontdestroyonload to keep the same player object from scene to scene, it works just fine but when I reload a scene it completely breaks everything. I get error messages saying "The referenced script on this Behaviour (Game Object 'Player') is missing!" but also for every other object in the scene that has a script. My scripts in the animator don't seem to work anymore too. I'm new to game development so I hope I'm missing something obvious.

Viewing all articles
Browse latest Browse all 2891

Trending Articles



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