S
S
Sasha2017-10-23 13:53:05
Unity
Sasha, 2017-10-23 13:53:05

Unity how to properly create and load AsseteBundle?

Good afternoon dear ones.
There were a couple of questions about Unity.
1. The docs say that running scripts from an assetbundle on iOS is not possible. Is it so? For according to some sources, it seems like everything is being done (as they say).
2. After reading certain information, googling, watching a couple of videos on YouTube, I came to the conclusion that AssetBunble should be added to the build during assembly, + manually specify the name of the asset in the assembly. That is, when loading new assets, you need to rebuild the application itself. Is it so?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Gaydak, 2017-10-23
@amaksd2

1) scripts are not included in asset bundles. on any platform at all. everywhere in the objects there are links to scripts. All scripts come with the application. and the asset bundle - just by id pulls the necessary scripts to the right places and serializes the fields.
so adding a new script to the game - through an asset bundle - will not work.
but by changing the script (without creating new fields assigned in the editor, etc.) - you can rebuild the application itself. and the bundle will continue to work.
2) You can also add to the assembly, but usually asset bundles are loaded from their own server. which means that on this server nothing prevents you from raising a small simple REST API .. from which you can ask "what is there to load and what is it called"
With the option when the server says what to load and whether there is a new version and the like, it will not always be necessary to rebuild.
I hope this is useful and understandable to you))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question