|
this is a little piece of code that works like a charm in the Unity iPhone Editor but doesn't work on the iPhone, throwing an exception in the XCode console at runtime.
the exception is documented at http://monotouch.net/Documentation/Troubleshoot
which is pretty funny since this code will throw a null deref exception^^ did anyone already solve this issue? It's more related to Mono than to Unity, because it works fine in the Editor. I set .NET in the Player Settings of the Project to 2.1 . Thank you for the time spent reading this wall of text.
(comments are locked)
|
|
I believe generics (System.Collections.Generic) are not fully supported on iPhone. There are some good suggestions and details in this Q&A more like they are not supported at all, if i can't even get the Count of elements...
Jul 09 '10 at 03:20 PM
Jackpoz
indeed, had to use an ArrayList....
Jul 09 '10 at 03:48 PM
Jackpoz
(comments are locked)
|
|
Don't construct a List with an array, it crashes on the phone. Known bug. Instead add the objects one at a time. i hackfixed it using the non-generic ArrayList type. ArrayList gos = new ArrayList(GameObject.FindGameObjectsWithTag(tag));
Jul 11 '10 at 09:51 AM
Jackpoz
(comments are locked)
|

FYI Note this MUCH NEWER answer from 2011
http://answers.unity3d.com/questions/54841/does-current-iphone-support-listt-in-c.html