Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

EditorApplication.OpenProject

Switch to Manual
public static function OpenProject(projectPath: string, params args: string[]): void;

Parameters

projectPathThe path of a project to open.
argsArguments to pass to command line.

Description

Open another project.

Note that this function will not exit immediately. It will open another project after executing function returns.