Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

Destroy child from parent in array (Child instatiate)

$
0
0
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 ?

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>