HI, how i can destroy a child that was instatiate, from a parent in a array ?
this is a error:
Destroy(actualParent.transform.FindChild("actualChild(Clone)").gameObject);
the error is: NullReferenceException: Object reference not set to an instance of an object
and by this nothing happend:
Destroy(actualParent.transform.FindChild("actualChild(Clone)"));
or is is better to disable it ?
↧