ドキュメント

Unity Engine

Unity Engine

SetTemporaryProjectKeepPath(string)

Sets the path that Unity should store the current temporary project at, when the project is closed.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static void SetTemporaryProjectKeepPath(string path)

Parameters

path

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

Remarks

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.