|
Is System.Reflection available on iOS with Unity 3? and if it is, are there any quirks?
(comments are locked)
|
|
I've been using System.Reflection on iOS with Playmaker and haven't run across any issues. I remember reading that Emit doesn't work on iOS.
(comments are locked)
|
|
I've been running into problems with it. Where the iPhone crashes when trying to do Assembly.Load Assembly load will not work, iOS is AOT compiled not JIT. Also dynamic code adding is forbidden on iOS (and can get your app black listed and your dev account banned if you try to circumvent it), you would have to add scripting if you want to do such a thing, so it uses the same compiled code base all the time
Dec 26 '11 at 05:55 PM
Dreamora
Also be careful. If you use code-stripping to reduce the filesize Unity could strip things away you might want to access via reflection. Since reflection is dynamic, Unity can't determine that at compile / build time. In most cases if you use at least each classname somewhere in a included script there should be no problem, but in some rare cases you could shoot yourself in the foot
Dec 26 '11 at 08:53 PM
Bunny83
Or simply look at the documentation, understand what link.xml is for and you are normally safe too :)
Dec 26 '11 at 08:57 PM
Dreamora
(comments are locked)
|
