Version: 5.4
public static string applicationPath ;

説明

UnityEditor アプリケーションのパス(読み取り専用)

関連項目: applicationContentsPath.

	// This example lets you load Editor scripts
	// automatically to your current working project
	//
	// Just place your editor scripts next to where the Unity binary
	// resides.
	
	@MenuItem("Example/Load Editor Scripts")
	static function LoadEditorScripts() {
		// Get the editor folder that resides next to the Unity exec
		var appPath : String[] = EditorApplication.applicationPath.Split(char.Parse("/"));
		appPath[appPath.Length -1] = "Editor";
		var editorFolder : String = String.Join("/",appPath);
		Debug.Log("Loading editor scripts at: " + editorFolder);
		FileUtil.CopyFileOrDirectory(editorFolder,"Assets/");
	}
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961