首页 > 技术文章 > unity之复制文本到剪贴板

jietian331 2017-09-26 20:26 原文

代码如下:

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

 

推荐阅读