Currently I am using Unity for university research purposes, and I am familiar with C# and Unity. In my project, I have a Robot in the hierarchy, and this Robot has many children, and children has their own children. like the following:
Robot>>Cabin/CounterWeight/BoomPivot>>Boom1/Boom2>>StickPivot>>Stick>>BucketPivot>>Bucket
Those with “Pivot” at the end of their name, is assigned with the tag called, “RobotPart”.
I am looking for a piece of code that automatically search in the children of the “Robot” and find those with the tag “RobotPart”.
Is there any way to do that?
Finally I want to have access to the properties of those children and control them if necessary. Thanks.
strong text