Answers for "how to destroy parent gameobject unity"

C#
3

unity remove parent

transform.parent = null;
Posted by: Guest on June-07-2020
2

destroy all objects under parent unity c#

foreach (Transform child in TextHolder.transform) {     GameObject.Destroy(child.gameObject); }
Posted by: Guest on September-03-2020
-1

how to destroy parent gameobject unity

Destroy(transform.parent.gameObject);
Posted by: Guest on September-26-2020

Code answers related to "how to destroy parent gameobject unity"

C# Answers by Framework

Browse Popular Code Answers by Language