美文网首页
Generate Dll For Unity In Mono

Generate Dll For Unity In Mono

作者: 庄什么庄 | 来源:发表于2017-05-21 00:17 被阅读0次

1 . Create an empty C# class library

2. Compile you class

Change you target .Net Framework (int unity 5.5.1, it need to be .NET3.5 or lower

then build your project

get back to you project in files, you will get you own dll under path bin/Debug

drop to you unity project

Use dll in unity

Add references of UnityEngine.dlland/orUnityEditor.dllto the project, you can do so by browsing into the folder (typically, depending on your specific Unity3D installation directory):

Mac:              /Applications/Unity/Unity.app/Contents/Frameworks/Managed/

Windows:      C:\Program Files\Unity\Editor\Data\Managed

相关文章

网友评论

      本文标题:Generate Dll For Unity In Mono

      本文链接:https://www.haomeiwen.com/subject/okcmxxtx.html