In-Game Copy/Paste

Is there a Javascript function to copy some text while our game is running and then paste this text into another app using standard command-v

Thx

Jeff

Copy Paste used to work in-game and between apps, but I believe it is broken on OSX in 3.1. Not sure about windows though.

Does anyone else know about the status of in-game and game-to-app copy/paste?

Thanks

Is fixed in Unity 3.2.

–Eric

Hi Eric,

Wonderful!!

Would you mind providing a brief example of how to copy some in-game text to the clipboard?

Thanks

Jeff

Select text in something that has selectable text (like TextField), and copy it.

–Eric

Aha :slight_smile:

Misunderstanding sorry - what I need to do is (via code within my Unity project) copy some text to the clipboard so that it can be pasted into another app. So via MouseOver a String is set to a variable and auto copied to a clipboard.

Is this possible?

Thanks

Jeff

bump … is anyone able to help with this one?

We need a way to copy some text “IN-GAME” to the clipboard.

Thanks

To elaborate … we have a Telnet session running in a separate app beside our Unity Game. When the user clicks on an object in the game we need some info copied to the clipboard so that the user can then paste it into the Telnet window.

So what we need is a simple OnMouseDown copy text to clipboard.

Any help would be awesome thanks.

How about if your game generated a special code or customer id, could it be added via code to the clipboard?