ExtensionMethods.GetChildren C# (CSharp) Method

GetChildren() public static method

public static GetChildren ( this go ) : List
go this
return List
	public static List<GameObject> GetChildren(this GameObject go)
	{

		List<GameObject> children = new List<GameObject>();

		foreach (Transform tran in go.transform)
		{

			children.Add(tran.gameObject);

		}

		return children;

	}
ExtensionMethods