语言English
  • C#

IExternalCodeEditor.TryGetInstallationForPath

声明

public bool TryGetInstallationForPath(string editorPath, out Unity.CodeEditor.CodeEditor.Installation installation);

参数

editorPath 所选代码编辑器的绝对路径。
installation 用于存储结果 Installation。如果返回值为 false,则忽略此结果。

返回值

boolIExternalCodeEditor 是否支持 editorPath 实现。

描述

Unity 存储所选编辑器的路径。通过在此方法被调用时返回 true,IExternalCodeEditor 的实例可以对此路径负责。需要使用路径和应在“外部工具”代码编辑器列表中显示的名称构造 out 变量 installation

对于受支持的代码编辑器路径,此函数将输出变量 installation 设置为 Installation 的实例,该实例描述出现在“编辑器偏好设置”>“编辑器工具”部分中的名称。


Did you find this page useful? Please give it a rating: