Quantcast
Channel: Answers by "Graham-Dunnett"
Viewing all articles
Browse latest Browse all 959

Answer by Graham Dunnett

$
0
0
'stateArray' is un-typed, so Unity assumes it is an array of Objects. Your line 39 grabs one of the Objects and says it's a String, which the compiler correctly tells you is an implicit downcast. You probably want to use `#pragma strict` (which all scripts have out of the box) to help remind you to type your objects correctly.

Viewing all articles
Browse latest Browse all 959

Trending Articles



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