How to active all the childrens of GameObject in Unity Editor?

How to active all the childrens of GameObject in Unity Editor?

for (var child : Transform in transform) {

child.SetActive (true);

}

OR

gameObject.SetActiveRecursively(true);