How to compile Unity3D script to include it to AssetBundle?

后端 未结 1 2013
天命终不由人
天命终不由人 2020-12-12 00:50

According to this manual I can include scripts as binary data and load them via Reflection. I understand all steps, except one: how can I compile script to get binary data f

相关标签:
1条回答
  • 2020-12-12 00:52

    Solution:

    1. Open Monodevelop and create C#Library project
    2. Add UnityEngine.dll to References
    3. Compile your scripts
    4. Copy bin/.dll from your library project folder to Assets of your unity project and change extension from .dll to .bytes

    That's all.

    0 讨论(0)
提交回复
热议问题