Does activating a parent activates children (MB's Awake())
When I have structure like this:
parent
|---child
|---child2
and parent is inactive (disabled), does scripts in child and child2 executes Awake() method when parent is finally enabled?
Answer by landon912 · Aug 24, 2015 at 02:24 AM
If child and child2 are enabled after being disabled, then Awake will be called.
Awake is called immediately when both the GameObject and script are enabled.
The situation is as follows:
First, all three are enabled (parent, child, child2)
Then parent gameobject get disabled (child, child2 still enabled)
Then parent get reenabled after some event
Does child and child2's scripts execute Awake() after 3 happens??
Your answer
![](https://koobas.hobune.stream/wayback/20220612001146im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Script does not recognise gameObjects 1 Answer
FindChild not working - Unity 5.5 2D 0 Answers
Mesh Import adds Extra Layer 0 Answers
Is it possible to have independent searches per hierarchy window? 0 Answers
Using StartCoroutine in a Nested Class 0 Answers