All application content, including scenes and scripts, should be loaded from the bundle downloaded from the server. There are no special problems with android on it, System.Reflection can be used there, but the Unity documentation says that reflection is not available for devices with AOT compilation, i.e. for iOS. How, then, can I tie a script to an object on the stage, taking into account that the script can be changed in the next update and needs to be replaced?

  • To hang up a script-interface on GO, and to bring logic to the library, and to update it? - eastwing
  • Probably, this can be done, but here are the Start and Update methods ... If we assume that the number of scenes can vary, and there can be completely different GOs on each scene, then to determine which GOs should be initialized, some kind of check must be started and in the update. Those. in fact, the start method of a certain scene must call the start method of a class from the library. It turns out that you need to pre-add scripts to the library without functionality for potential scenes, which, if necessary, be filled with logic and loaded with an update, if I understood everything correctly. - Simatsu Edgeworth
  • Do you have the opportunity to test reflection? Because they write here that it seems to work, but with reservations. True, this is 2012 - eastwing
  • Unfortunately, there is no opportunity to test it yet, but they write here that dynamic code generation is still not working. Works in general Reflection API with lists of methods and data type retrieval - Simatsu Edgeworth

0