- Home /
Loading Scripts from asset bundle in iOS and WebGL.
Hi, I am trying to load scripts from Asset Bundle in Android, iOS and WebGL. In Android I am able to load scripts using Reflection and Assembly.Load as given in the link https://docs.unity3d.com/Manual/scriptsinassetbundles.html This will only support for android and not for iOS and WebGL. How can i load scripts from bunlde in iOS and WebGL. Is there a way to load it. Please share your knowledge if anyone has already tried this. Thankyou.
I don't think it's possible in iOS. Not to mention that it will get your app kicked off the app store, since you can't download executable code after passing the review.
Looking for the same, I'd like to load assets on HoloLens.
Im trying to do the same, because i want $$anonymous$$y inital file to be as small as possible for web. maybe you can do this with JavaScript since jacascript doesnt realy care about context. or you have different unity projects for each scene, and swap the webgl container everytime you change scenes. The persistent data would have to be stored and retrieved from a server.. ... but this seems to complicated and would not work on other platforms only webgl. $$anonymous$$aybe.. just an idea.
Your answer
Follow this Question
Related Questions
Loading scripts dynamically in AoT compilers 1 Answer
Loading Asset Bundles on iOS device 3 Answers
Finding resources folder on iOs 3 Answers
Asset Bundle with script ? 0 Answers
Unity 5 Resources.LoadAsync on Android slower than iOS? 0 Answers