unity how to copy something to the clipboard
GUIUtility.systemCopyBuffer = "test";
unity how to copy something to the clipboard
GUIUtility.systemCopyBuffer = "test";
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();
}
}
unity copy to clipboard
using UnityEngine;
public static class ClipboardExtension
{
/// <summary>
/// Puts the string into the Clipboard.
/// </summary>
public static void CopyToClipboard(this string str)
{
GUIUtility.systemCopyBuffer = str;
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us