I am currently trying to incorporate a way to load scenes with script in them in runtime. So for example, a verified user/creator will create their own scene with assets and scripts (using Unity and our SDK/API) and upload it to our server, and users can play the content.
I was able to verify that this is possible using AssetBundles and Assembly/DLLs to load them in runtime. I was wondering if there is any easier way to achieve this using Addressables. It seems not possible to make scripts addressables but I was wondering if there are any work-arounds or hacks to achieve this.
You cannot load working scripts through Asset Bundles or Addressables. You need to find another solution to write a custom environment if you want to compile and/or load scripts in runtime. Depending on what you want to do exactly.
Maybe a simple DLL loader is adequate, maybe you need an entire Roslyn to compile new scripts, it’s hard to tell in advance not knowing your design and it is a very broad topic.
Thank you, yeah I tried and found do it with addressable seems impossible.
I do not have a exactly need and just curious about how to make it. I’ll learn in the future.
hace a good day, Ninja