Legacy Documentation: Version 2017.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

EditorApplication.OpenProject

public static void OpenProject(string projectPath, params string[] args);

Parameters

projectPath The path of a project to open.
args Arguments 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.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答