EditorApplication.SetTemporaryProjectKeepPath

Switch to Manual
public static void SetTemporaryProjectKeepPath (string path);

Parameters

pathThe path that the current temporary project should be relocated to when closing it.

Description

Sets the path that Unity should store the current temporary project at, when the project is closed.

Usually, when the user closes a temporary project (by opening another project, or exiting Unity), they are prompted to keep the project by selecting a permanent location for it. If you pass a non-empty path to this function, the prompt will be bypassed and the temporary project will be automatically relocated to the provided path.

It is an error to call this API if EditorApplication.isTemporaryProject is not true.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961