Hi guys,
is there a way for me to activate all child objects within a parent object at once?
For example, i have an empty parent object, in this empty parent object i have coins in certain positions.
Once a coin is picked up, that one child coin within the parent is set to SetActive(false) while the rest are still active. Once these coins go past a certain x position, the parent object is SetActive(false).
When this parent is called again from my object pooler, it is SetActive(true). HOWEVER, previously, that one coin that was picked up was set to false, so when the parent is set to true, that one coin is still set to false.
How can i enable all previously inactive child objects?
I hope this makes sense,
Edit: it looks like using the obsolete method SetActiveRecursively(true); enables all the children in the parent object? how come setactive(true) does not?
Thanks