Get Childrens to new array from perents array.

Hi! I have public array, i will fill it with prafabs in inspector. Each prefab have 3 objects 2 with tags and they are childrens of third one. I need to get access to thouse with tags somehow. Preferably put them in two arrays.Can you help me with my problem ? BTW tagd objects one is GameObject(mesh) other one is a pointLight.

Here, I wrote a neat function for you to access the children of an object by their tag.

Transform GetChildWithTag(Transform parent, string tag) {
	for (int i = 0; i < parent.childCount; i++) {
		Transform child = parent.GetChild (i);
		if (child.tag.Equals (tag, System.StringComparison.Ordinal)) {
			return child;
	return null;