$ 0 0 Use a foreach loop through this.getcomponentsInChildren(). If you'd like to do this permanent, make sure your scripts executes in edit-mode