如何从MonoDevelop启动本地Unity API参考

Dar*_*una 5 monodevelop unity-game-engine

在MonoDevelop中,Ctrl +'(不是F1)带来了来自http://unity3d.com/support/documentation/的Unity API参考(帮助)...而不是从Unity API的本地副本中读取它.如何让它始终打开本地文档?

Luk*_*tar 2

如果您使用Firefox,则可以使用Redirector重定向到本地文档。安装插件,然后打开选项。( Ctrl+Shift+A > 扩展 > 重定向器 > 选项)

然后使用这些值(或类似的值,具体取决于本地文档的位置):

  • 描述:(Unity Documentation或者任何你想要的)
  • 示例 URL:(http://unity3d.com/support/documentation/ScriptReference/30_search.html?q=Transform或任何其他搜索查询。用于预览链接将重定向到的内容。这是可选的。)
  • Include Pattern:http://unity3d.com/support/documentation/ScriptReference/*注意我使用的是unity3d.com/support/documentation/ScriptReference/...,因为这是 MonoDevelop 打开的 URL,然后重定向到docs.unity3d.com/ScriptReference/...
  • 重定向到:file:///C:/Program Files (x86)/Unity/Editor/Data/Documentation/html/en/ScriptReference/$1如果 Unity 未安装在 C 驱动器上或者您使用不同的操作系统,您将必须找出本地 URL 的样子,并将 右侧的所有内容替换/ScriptReference/$1. (/ScriptReference/index.html/ScriptReference/$1
  • 图案类型:Wildcard
  • 您可以保留所有其他字段不变。

现在,只要您按下该快捷键,您就会自动重定向到本地 API 参考,而不是在线参考。我也在没有互联网连接的情况下进行了测试。不幸的是,该插件仅适用于 Mozilla Firefox,我还没有成功地使用适用于不同浏览器的其他工具来做到这一点。

编辑:据作者网站称,Redirector 现在也可用于 Chrome 和 Opera 。