- Home /
 
rendering panel w/children
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
 }
 
              
               Comment
              
 
               
              Your answer