greggman / unity-webgl-copy-and-paste

Support Copy and Paste in Unity WebGL
BSD 3-Clause "New" or "Revised" License
112 stars 23 forks source link

Copy text on click button #8

Open dlorddd opened 2 years ago

dlorddd commented 2 years ago

This is more of a feature request. Would it be possible to trigger copy by clicking a button in Unity? I have tried calling passCopyToBrowser directly but this doesn't work.

sael-you commented 1 year ago

Did you find a solution to this ?

dlorddd commented 1 year ago

Unfortunately not.

sael-you commented 1 year ago

If you still or someone else looking for a solution, i found this pretty good tutorial to make a WebGL share button (which is basically a copy to clipboard button). https://pudding-entertainment.medium.com/unity-webgl-add-a-share-button-93831b3555e9