public static object CopyPastObjectButtons(object obj) { var CopyContent = new GUIContent("Copy Data", "Copies the data."); var PasteContent = new GUIContent("Paste Data", "Pastes the data."); if (GUILayout.Button(CopyContent)) { CopyPaste.EditorCopy(obj); } if (GUILayout.Button(PasteContent)) { CopyPaste.EditorPaste(ref obj); } return(obj); }