Version: 2023.1

CodeEditor.GetInstallationForPath

切换到手册
public Unity.CodeEditor.CodeEditor.Installation GetInstallationForPath (string editorPath);

参数

editorPath The absolute path to an executable.

返回

Installation An Installation representation of the path.

描述

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