![]() |
Help Rope hierarchy - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html) +--- Thread: Help Rope hierarchy (/thread-4302.html) |
Rope hierarchy - zack_Lee - 24-07-2024 I want to recycle my rope when it doesn't collide and there are no other ropes above it. I've now solved the collision problem. But what about hierarchies? How do I know there is no other rope above this rope RE: Rope hierarchy - josemendez - 24-07-2024 (24-07-2024, 08:40 AM)zack_Lee Wrote: But what about hierarchies? How do I know there is no other rope above this rope Hi! Same as you would any component in Unity: GetComponentInParent. Keep in mind this method returns the first component found while traversing the hierarchy upwards including the one in the current gameObject. kind regards, |