Version: 2021.3

CodeEditor.GetCodeEditorForPath

切换到手册
public Unity.CodeEditor.IExternalCodeEditor GetCodeEditorForPath (string editorPath);

参数

editorPath The absolute path to an executable.

返回

IExternalCodeEditor Returns an IExternalCodeEditor representing the package responsible for the editor path.

描述

Each registered code editor package has an instance of IExternalCodeEditor. This method invokes IExternalCodeEditor.TryGetInstallationForPath on that instance. It returns the first instance that returns a valid installation.