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
  • did you search before posting ? :) stackoverflow.com/questions/10808033/… Commented Jul 14, 2014 at 15:38
  • I did, and all I found was answers about how to compile and run a C# program .. but my question is more specific about how to produce a binary precompiled file from a class .. if you have a reference that I missed please direct me to it Commented Jul 14, 2014 at 16:12
  • Got it stackoverflow.com/questions/10808033/… Commented Jul 14, 2014 at 16:40

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.