1 在C#中我们直接用
System.Windows.Forms.Clipboard.SetDataObject(“要复制的内容”);
而在Unity中,我们没有该命名空间的引用
2 unity 中
TextEditor te = new TextEditor();
te.text = new GUIContent(“要复制的内容”);
te.SelectAll();
te.Copy();
3 unity 中
GUIUtility.systemCopyBuffer =“要复制的内容”;
原文:https://blog.youkuaiyun.com/ComplicatedCc/article/details/60876948