Answer by Raresh
transform.parent.transform.parent.gameObject.GetComponent or something else you need
View ArticleAnswer by DoTA_KAMIKADzE
If you just want to get parent in second iteration (parent of parent) then: GameObject parent2 = transform.parent.parent.gameObject;//of course if parent might not be there then the second line of code...
View ArticleAnswer by Raresh
transform.parent.transform.parent.gameObject.GetComponent or something else you need
View ArticleAnswer by DoTA_KAMIKADzE
If you just want to get parent in second iteration (parent of parent) then: GameObject parent2 = transform.parent.parent.gameObject;//of course if parent might not be there then the second line of code...
View Article
More Pages to Explore .....