Quantcast
Channel: Answers by "shriya"
Viewing all articles
Browse latest Browse all 98

Answer by shriya

$
0
0
Hi staticVoidMan, If I understood correctly, your problem is that "Datasource_GO" gameObject is multiplying every time you switch scenes as script has Dont Destroy onLoad method.. For this you can create a prefab of "**Datasource_GO**" with the script already assigned and instantiate in the first scene i.e your Menu with a check to see if it is already in scene or not. if(!GameObject.Find("Datasource_GO")) { Instantiate (Datasource_Go);//Write correctly yourself } Same is to be done in your GamePlay scene, so that it does not start multiplying in gameplay scene. I hope I am clear with my point.

Viewing all articles
Browse latest Browse all 98

Trending Articles



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