BrownRedHawk
2
Q:

unity how to copy something to the clipboard

GUIUtility.systemCopyBuffer = "test";
1
 //Add this to any class and just set it with clipboard = "text";
 
 internal static string Clipboard {
   get
   {
     TextEditor _textEditor = new TextEditor();
     _textEditor.Paste();
     return _textEditor.text;
   }
   set
   {
     TextEditor _textEditor = new TextEditor
     {text = value};

     _textEditor.OnFocus();
     _textEditor.Copy();
   }
}
0

New to Communities?

Join the community