Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Rope hierarchy
#2
(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,
Reply


Messages In This Thread
Rope hierarchy - by zack_Lee - 24-07-2024, 08:40 AM
RE: Rope hierarchy - by josemendez - 24-07-2024, 09:00 AM