My question is do I have to redefine all these using var? Or is there some shortcut setting that I can use to bypass all the errors?
I have an array full of rotations. What kind of array is that? Quaternions, Vector4? I use lots of hashtables how do I define ahead of time what's going in those?
What about functions? Some functions complain others do not. Do I define the arguments in the function declaration?
asked Feb 27 '12 at 12:47 AM
Never use Array, never use Hashtable. If you have a fixed-size array, use int, Vector3, etc. (As for rotations, look in the docs, it always tells you the type of everything.) If you have a variable-sized array, use List. Use Dictionary instead of Hashtable. And yes, you must always define the types in a function declaration.
answered Feb 27 '12 at 01:23 AM
Have a read of this document: http://unity3d.com/support/documentation/Manual/iphone-GettingStarted.html
By default iOS turns of dynamic casting, which essentially would do the same thing when you do #pragma strict. You just need to ensure that you declare all your variable data type, which you really should be doing anyway, its just good practice.
and so forth
answered Feb 27 '12 at 01:11 AM