I’m doing a project where I need to stream scripts. Is it possible to build Unity scripts into a regular asset bundle for Unity iPhone (Pro)?
If not, is there any way to do it other than building your own script interpreter plugin?
I’m doing a project where I need to stream scripts. Is it possible to build Unity scripts into a regular asset bundle for Unity iPhone (Pro)?
If not, is there any way to do it other than building your own script interpreter plugin?
You can place scripts (or indeed any other asset) in an AssetBundle, and it should be fine on iPhone.
Scripts are not supported in Asset Bundles. They are no assets defacto.
Code is beeing compiled and as such it must be present at compile time or will not be present at all out of Unity sight.
Even if it would, you are NOT allowed to add code at runtime to your application through addons on the iphone.
I should really think about getting a new job… ![]()
Naw you do a great job ![]()
dreamora:
Thanks for your reply.
Do you know if the restriction on adding code at runtime goes for interpreted scripts as well? If so, where is the line drawn between streaming scene settings that indicate behaviours, and streaming actual (LUA, python etc) scripts? There’s a pretty big gray area in between there.
Sorry if I may but in. The iPhone SDK Agreement is fairly clear in sections 3.3.2 and 3.3.3.
3.3.2 - No interpreted code may be downloaded or used in an Application
3.3.3 - An Application may not provide, unlock or enable additional features or functionality through distribution mechanisms other than the App Store
3.3.2 prevents the extension or modification of that app after it has been installed by the user. Basically they don’t want you or an attacker to write an app that can download code so it can self-modify in some way.
Likewise with 3.3.3 which is related to Lite versions that have greyed out options that are then enabled or otherwise in someway. These apps you’ll see getting rejected. Unless of course you use in-app purchases.
This is one of the reasons why Flash isn’t available on the iPhone.
zibba: Thanks for a very informative reply!