i have a script that instantiates a bunch of things and when i turn off that script the objects continue to be instantiated is their anyway to stop this so that the objects no longer instantiate once the script is turned off ?
You definitely have to show the actual script or explain how or where the instantiation takes place such that we are getting the context.
ok sorry if i wasent clear enough… once my game starts Cubes are being Instantiated in the background and then when i hit the play button i want those objects to stop being instantiated but for some reason they just continue to instantiate… i used another script so that once the play button is clicked it disables the script that the Cubes are being instantiated from but for some reason it dosent do me any good the objects still continue to instantiate evan tho the script is disabled
Are the cubes instantiated in the Unity editor and then when you hit play to switch to play mode, they are still being instantiated?
Just add a conditional around they code for the script that is checking for the enabled bool
Hey thanks for your help, for some reason when i copy n paste my code in i get chineese … but besides that i managed to fix the issue, i have a delay and when thats set to 0 it seems to stop them from spawning but this also leads to another problem for some strange reason when the float gets updated whilst the game is running it dosent have any effect i actually have to restart the game in the editor for it to take effect is their any possible way to get the float to update because at the moment it dosent seem like its being updated…