天天看点

unity调用系统输入法复制功能

代码

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

可以直接复制指定字符串内容。