Asset Bundle With Script - working in editor, not on device

Hello,

I have been trying to create an asset bundle with script and running the script in run time when we download the asset bundle.

I have tried as mentioned in this page Unity - Manual: Managed plug-ins

Its working fine in editor[Mac], printing numbers in console/output window. But not working when I was running it on actual device [iPhone 5]. Any one knows why?.

Thanks in advance.

Reflection is not available on iOS which would be needed to load code from asset bundles:
http://docs.unity3d.com/Manual/scriptsinassetbundles.html

Thanks for the quick reply. Is there any other way to achieve this? or not possible ?

The only way would be to use an interpreted language, that doesn’t rely on reflection. Not really practical.

What is your use case? Why can’t you have all the code in the actual project?

In our case, we are building a big virtual world kind of game, where we need to have a number of bigger levels[which has mini games inside]. We planning to keep the script with asset bundle itself, which helps us we don’t need to update entire app, whenever we add new world/asset bundle with logic in it.

If you have any suggestions, much appreciated. Thanks,

Nope, sorry. I have not experience with that.

Thanks for the help anyways. Hope, some one else comes up with better ideas.