文档

Unity Engine

Unity Engine

OpenProject(string, int, int)

The external code editor needs to handle the request to open a file.
阅读时间1 分钟最后更新于 1 个月前

Definition

bool OpenProject(string filePath = "", int line = -1, int column = -1)

Parameters

filePath


line

Line number to open the file on.

column

Column to move cursor to on the specific line.

Returns

Type

Description

boolWhether the request went successfully.

Remarks

The interface defines a default argument for this method, filePath empty string, line -1, column -1. This requests is a special case where the IDE is requested to open the project, but no specific file, and can be handled differently across integrations.