copyunicode to clipboard code example
Example 1: copy to clipboard unbity
//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();
}
}
Example 2: copy from vim to clipboard
Use "+ to copy to the system clipboard
i.e. "+y instead of y
Likewise you can paste from "+ to get text from the system clipboard
i.e. "+p instead of p