public static Transform[] GetTopLevelChildren(Transform Parent)
{
Transform[] Children = new Transform[Parent.childCount];
for (int ID = 0; ID < Parent.childCount; ID++)
{
Children[ID] = Parent.GetChild(ID);
}
return Children;
}
'프로그래밍 > 유니티' 카테고리의 다른 글
무한스크롤 (0) | 2019.05.17 |
---|---|
Itween for TextMeshProUGUI & UGUI (0) | 2019.05.02 |
UGUI 최적화 (0) | 2019.04.08 |
multiple camera target (0) | 2019.03.29 |
메시 바운드 판별 코드 (0) | 2019.03.29 |