unity之复制文本到剪贴板

代码如下:

    static void CopyString(string str)
    {
        TextEditor te = new TextEditor();
        te.text = str;
        te.SelectAll();
        te.Copy();
    }

 

posted @ 2017-09-26 20:26  孤独の巡礼  阅读(2079)  评论(0编辑  收藏  举报