- Home /
get bone path from transform
Is there a function that will give me the path. ie cow/hip/chest/rleg instead of just the name ie "rleg" from a bone transform. I mean something besides iterating through all the parents and making the list manually?
How do retrieve a bone with the name "rleg" if there are two figures on the screen with a "rleg".
Thanks,
Dan
Answer by Paulius-Liekis · Apr 17, 2012 at 11:08 AM
I don't think there is a function for that out of the box. You will have to iterate the hierarchy and get the full name.
Your answer
![](https://koobas.hobune.stream/wayback/20220613070244im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Accessing children of instances vs children of original prefab 1 Answer
How to list child game objects in the same order they appear in Editor? 1 Answer
question about how - precisely - looking through children works random or alphabetical. 1 Answer
Pre-Emptive Optimisation Help 0 Answers
transform.Find always returns null 1 Answer