Quantcast
Channel: Questions in topic: "renderer.enabled"
Viewing all articles
Browse latest Browse all 99

Unity 2019.4.9f1 - Toggle Show/Hide Gameobject with one keystroke.

$
0
0
Hi all. I have constructed a spiral freezer and want to simulate automated cleaning on it. To do that I am making 9 "segments", each consisting of an empty gameobject with several particle systems as children. I would like to start with all segments hidden og then be able show/hide each segment when pressing keys 1-9. By searching the web I found several answers, but all seem to be outdated? **Can anyone help me code show/hide a gameobject+children in one keystroke?** ![alt text][1] [1]: /storage/temp/167615-cleaningsegments.jpg

Viewing all articles
Browse latest Browse all 99

Trending Articles



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