Unity 编辑器功能笔记合集

 

获取打开的文件夹路径 EditorUtility.SaveFolderPanel

    [MenuItem(MenuDir + "BuildTest", priority = 5001)]
    public static void OpenSaveFolder()
    {
        string saveFolder = string.Empty ;
        saveFolder = EditorUtility.SaveFolderPanel("Test", saveFolder, "");
        Debug.Log(saveFolder);
    }

复制文本到剪切板  EditorGUIUtility.systemCopyBuffer

GUIUtility.systemCopyBuffer = "复制的文本";

 

 

你可能感兴趣的:(编辑器)