Quantcast
Channel: Questions in topic: "clone"
Viewing all articles
Browse latest Browse all 508

Editing (clone) properties after runtime

$
0
0
So I have an object with a disabled script in scene and a UI button that enables it by dragging the original object into the inspector and setting it to "Script.bool.enabled" so that the user can activate this function during the game and it isn't always active. This works fine on the original object, however I have set this object to be cloned 19 times in the level and when the user clicks the bool.enable button it activates the script only for the original object and none of the clones like I need it to. Since I can't drag the object(clone) into the inspector while editting, how would I make it so that the user can activate these scripts during runtime?

Viewing all articles
Browse latest Browse all 508

Trending Articles



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