Quantcast
Channel: Answers for "InvalidCastException when trying to access child components"
Viewing all articles
Browse latest Browse all 4

Answer by senad

$
0
0
I do not see anything wrong in that code. Maybe you can look at what GetComponentsInChildren() returns in debug mode to get a hint at the problem. For this purpose you can change the type of fireEmitters to Component[] to avoid the exception. (and change it back later)

Viewing all articles
Browse latest Browse all 4

Trending Articles



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