Answer the question
In order to leave comments, you need to log in
How to remove object instead of transform?
Trying to remove children:
int x = 0;
for (x=transform.childCount;x>0;x--)
{
var obj =transform.GetChild(0);
Destroy(obj);
}
It doesn't work because I'm trying to remove the transform
how do I remove the object itself?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question