Hey Guys, I’m building a application where I’m fetching asset bundles of different project. I’m making this for ARApp and It will run on IOS and Android. After reading so many answers I want to know is it possible to load C# scripts at runtime(basically from bundles) after application build. Main concept of this project is to Build one main application and load different kind of small project into this using Asset bundle. I want a solution for dynamic script loading so i don’t need to update main application
Hello!
Loading C# scripts at runtime from asset bundles is possible but tricky due to platform restrictions. First, pre-compile scripts into assemblies (.dll files) using Visual Studio. Next, embed these assemblies in asset bundles, saving them as .bytes files recognized as TextAssets. At runtime, load the assemblies using Assembly.Load(byte) from the asset bundle. Note, however, that platforms like iOS don’t support runtime code loading due to AOT compilation. This method allows dynamic script loading, avoiding frequent app updates.
As IL2CPP using AOT. I’m not using assemblies and i tried but my target project couldn’t load dll from bundle. apart from lua and assemblies is there any other option ?
No, il2cpp platforms cannot load stuff from bundles and I believe that is against Apple App Store rules too.
Thanks Man, You saved my time !!