Can someone please help me with this? I saw some codes and they are really hard to understand also I am quite a beginner in Unity and C#. How to copy to clipboard text? Are there any assets maybe out there which could help?
The simple way is:
GUIUtility.systemCopyBuffer = "the text you want to copy";
I don't know if this is supported on Android.
You should use the UniClipboard asset.
Import it to your project and then just call:
UniClipboard.SetText("text you want to copy");
If you need to get the text from clipboard:
string text = UniClipboard.GetText();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With