Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

EditorApplication.OpenProject

static function OpenProject(projectPath: string, params args: string[]): void;
static void OpenProject(string projectPath, params string[] args);
static def OpenProject(projectPath as string, *args as string[]) as 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.