Unity为我们提供了TextEditor Api,即可实现复制功能,代码如下:
TextEditor te = new TextEditor();
te.content = new GUIContent(outputTime.ToString());
te.SelectAll();
te.Copy();
Unity为我们提供了TextEditor Api,即可实现复制功能,代码如下:
TextEditor te = new TextEditor();
te.content = new GUIContent(outputTime.ToString());
te.SelectAll();
te.Copy();