I have Prefab1 that has an Auto Machine with onEnable to show a button on it and when it's pressed it spawns Prefab2 with another Auto Machine with onEnable then destroys itself.

This acts like a working toggle by itself, however when my scene reloads the buttons from before stay and overlap the new reloaded scene buttons which prevent me from pressing any button that is behind them.

Is there a different way I can make a toggle so that the buttons are cleared when the original game objects are reloaded and/or destroyed?

Any help is greatly appreciated!
Thanks,
=]
Portfolio - My Website
Follow my project on Reddit - My Game DevLog
relentingVids - My YouTube Channel
Half Super Shop - My Shop
  • If your buttons are added to ORK's canvas, they wont be destroyed on scene changes, because the canvas is not destroyed either. I.e. you'd need to manually destroy them.

    If the prefab1 auto machine shouldn't run when reloading the scene, you need to use variable conditions.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • That makes perfect sense, thank you so much.
    I've been learning so much with Makinom these past couple months and it is awesome!

    =]
    Portfolio - My Website
    Follow my project on Reddit - My Game DevLog
    relentingVids - My YouTube Channel
    Half Super Shop - My Shop
Sign In or Register to comment.