将 UnityEngine.dll 添加到 Mac 上的 Mono 项目
Add UnityEngine.dll to Mono projects on a Mac
在构建用于 Unity 的 Mono DLL 时,我们希望引用 UnityEngine.dll。几个教程讨论了如何做到这一点。例如,这里是来自 the Unity manual
的说明
Next, you should add references to the Unity DLLs. In MonoDevelop, you
should open the contextual menu For References in the Solution Browser and
choose Edit References. Then, choose the option .Net Assembly tab > File
System > select file. [...]
At this stage, you will have the option to select the required DLL file. >On Mac OSX, the file can be found at
Applications/Unity.app/Contents/Frameworks/Managed/UnityEngine.dll
但是 Mac 查找器不会进入 Unity.app,因此我无法导航到该文件夹以选择 UnityEngine.dll。我可以在终端中导航到那里,但不能在 'select file' 查找器中导航。如何在 Mac 上的 Mono 项目中添加 UnityEngine.dll 作为参考?
似乎 MonoDevelop
没有将文件浏览器设置为包含 .app
,因此 right-click 上下文菜单中不显示 Show Package Contents
。
使用CMD-Shift-G
弹出转到文件夹:条目,输入/Applications/Unity.app/Contents/Frameworks/Managed
和selectGo
在构建用于 Unity 的 Mono DLL 时,我们希望引用 UnityEngine.dll。几个教程讨论了如何做到这一点。例如,这里是来自 the Unity manual
的说明Next, you should add references to the Unity DLLs. In MonoDevelop, you
should open the contextual menu For References in the Solution Browser and
choose Edit References. Then, choose the option .Net Assembly tab > File
System > select file. [...]At this stage, you will have the option to select the required DLL file. >On Mac OSX, the file can be found at
Applications/Unity.app/Contents/Frameworks/Managed/UnityEngine.dll
但是 Mac 查找器不会进入 Unity.app,因此我无法导航到该文件夹以选择 UnityEngine.dll。我可以在终端中导航到那里,但不能在 'select file' 查找器中导航。如何在 Mac 上的 Mono 项目中添加 UnityEngine.dll 作为参考?
似乎 MonoDevelop
没有将文件浏览器设置为包含 .app
,因此 right-click 上下文菜单中不显示 Show Package Contents
。
使用CMD-Shift-G
弹出转到文件夹:条目,输入/Applications/Unity.app/Contents/Frameworks/Managed
和selectGo