0

I'm working on a project using Unity 3d. This project is an Application for android and it will download AssetBundles and load their content, but since AssetBundles cannot contain scripts, I will use precompiled C# script and use Mono Reflection to load it (I have no idea how but I would figure it out). But now I don't know how to precompile a .cs file, so can anyone help me with this?

3

1 Answer 1

2

Compile your script in MonoDevelop/VisualStudio as a .dll, copy your script.dll to Assets folder of your Unity project and change the extension from .dll to .bytes

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.