How to change Childobject Collider isTriger on/off?

Hello. Nice to meet you.

I bought auto collider setting asset for 2d .
But that asset does not have option for setting isTrigger;
So i have to set isTrigger on/off,but my Character have a lot of part, so it works heavy.
So iWant to change my child collider setting at script.
But my script is Doesnt work.

public class childcollider : MonoBehaviour {
	Transform tr;
	void Start () {
		gameObject.collider.isTrigger=true;
		int ChildCount = transform.childCount;

                       for(int i=0; i<ChildCount; i++){
			
                           Transform child = transform.GetChild (i);
	                   child.gameObject.collider.isTrigger=true;
		}
	
	}
	

}

How to i change child collder settings? thanks to look here.

Collider children = transform.gameObject.GetComponentsInChildren();
foreach (Collider col in children) {
col.isTrigger=true;
}