// need this at top of script
using UnityEditor;
string clipboard;
void Update () {
//paste like this
if (Input.GetKeyDown (“p”)) {
EditorGUIUtility.systemCopyBuffer = “blah blah string”;
}
//press the c key to get clipboard copy
if(Input.GetKeyDown(“c”)){
clipboard=EditorGUIUtility.systemCopyBuffer;
print(“system clipboard is:”+clipboard);
}}