Quantcast
Channel: Questions in topic: "parenting"
Viewing all articles
Browse latest Browse all 302

rendering panel w/children

$
0
0
I've created an enemy health bar using the new canvas UI. The panel is the parent and it has children, which are other UI components (sliders, text, etc.). When I start the game, it's suppose to unrender the parent and it's children. But the panel is only affecting the parent. How do I unrender the rest of it's children onStart without having to individually disable each one? public Image enemyHealth; onStart() { enemyHealth.enabled = false; //only affecting the parent and not it's children }

Viewing all articles
Browse latest Browse all 302

Trending Articles



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