Как вариант
Код
public class GetComponentInChildrensTest : MonoBehaviour
{
private Transform[] Components;
// Use this for initialization
void Start()
{
Components = gameObject.GetComponentsInChildren<Transform>();
foreach (Transform comp in Components)
{
if (comp != gameObject.GetComponent<Transform>())
{
Debug.Log(comp.GetComponent<Transform>().name);
}
}
}
}
Или так
Код
using System.Linq;
public class GetComponentInChildrensTest : MonoBehaviour
{
private Transform[] Components;
// Use this for initialization
void Start()
{
Components = gameObject.GetComponentsInChildren<Transform>();
foreach (Transform comp in Components.Skip(1).ToArray())
{
Debug.Log(comp.GetComponent<Transform>().name);
}
}
}