24-07-2024, 09:00 AM
(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,