Hi guys! Does anyone know how to get access to the clipboard in Unity for write data? I'd like to add "copy" button for my webplayer.
Here: Code (csharp): public static void SendToClipboard(string text) { TextEditor te = new TextEditor(); te.content = new GUIContent(text); te.SelectAll(); te.Copy(); } public static string ReceiveFromClipboard() { TextEditor te = new TextEditor(); te.content = new GUIContent(""); te.SelectAll(); te.Paste(); return te.content.text; }