Answers for "unity parent of parent"

C#
8

how to get parent gameobject in unity

childObject.transform.parent.gameObject
Posted by: Guest on December-14-2020
1

unity get component in parent

void OnCollisionEnter(Collision collision)
{
PlayerController pl = collision.gameObject.GetComponentInParent<PlayerController>();
}
Posted by: Guest on February-10-2022

Code answers related to "unity parent of parent"

C# Answers by Framework

Browse Popular Code Answers by Language