Quantcast
Viewing latest article 23
Browse Latest Browse All 205

change attached script from A to B for all objects having A as a script attached

I have a main script attached to a lot of game objects in my first level and I want to create a bunch of similar levels where the only thing that changes is the script. I would prefer to create 10 different scripts for 10 different levels by copying the first script and changing each script slightly. But then I would have to assign a new script to every gameobject which seems slow. Is there a smart way to quickly change every script A attached to gameobjects to a different script B?

Viewing latest article 23
Browse Latest Browse All 205

Trending Articles



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