- Home /
This question was
closed Mar 05, 2020 at 09:57 AM by
tormentoarmagedoom.
How to move the parent object to a child of one of its children?
I want a parent Game Object to parent itself to one of its children. How do I do this?
Comment
Answer by xxmariofer · Mar 05, 2020 at 07:37 AM
void Start()
{
Transform child = transform.GetChild(0);
transform.DetachChildren();
transform.SetParent(child);
}
Follow this Question
Related Questions
How to move the parent object to a child of one of its children? 2 Answers
Manipulating booleans from parent to child (C#) 2 Answers
Parent/Player teleports but its children dont teleport aswell 4 Answers
Trying to Recreate Transform Child Heirarchy to a List 2 Answers
Change gameObjects parent at runtime 3 Answers