- Home /
I Switched platforms and I got this errors
These errors show up when switch from Stand Alone platform to Adnroid.
sorry if I'm asking quite noob. Because I only have a percent of knowledge about unity 3D.
wow.jpg
(64.5 kB)
Comment
Answer by SarperS · Oct 25, 2012 at 05:38 AM
You have to declare the types of your variables explicitly. Meaning that you have to give the type of each variable instead of leaving it to the compiler to decide.
var someVariable; // Bad
var someVariable : int; // Good
Just put a
#pragma strict
At the top of your Unityscript and it will warn you when you do dynamic typing on compile time instead of runtime.