Get All Object Children and Their Children without Knowing How Many an Object has - Using C# Unity

Get All Object Children and Their Children without Knowing How Many an Object has - Using C# Unity

DA LAB

54 года назад

252 Просмотров

A method in Unity C# that go through all game object children and the children of their children without knowing if the game object has children or if its children have children on their own and so on.

GitHub link to TraverseAllChildren code:
https://github.com/DA-LAB-Tutorials/YouTube-Unity-Tutorials/blob/main/TraverseAllChildren.cs

Тэги:

#Unity #Script #UI #Model #C# #Get #All #Object #Children #Without #Knowing #How #Many #Descendants
Ссылки и html тэги не поддерживаются


Комментарии: