Skip to content

Instantly share code, notes, and snippets.

View guimaraf's full-sized avatar

Frederico Oliveira guimaraf

View GitHub Profile
using UnityEngine;
public class CopyToClipboardUnity : MonoBehaviour
{
[SerializeField] private string myText;
public void OnButtonCopyClipboardClicked()
{
TextEditor textForCopy = new TextEditor
{
text = myText