Copy paste text in game

heres a genius idea i just thought up but am not genius enough to make

would it be possible to blueprint a copy/paste function to work in game?
say if i had a block of text written in a widget can the cursor be used to highlight it and copy it then paste it into another widget?
im talking realtime, not in editor, obviously.

im thinking of creating a portable storage system as a game mechanic but have literally no idea if its actually possible.

Why not try it and see? It does work indeed in UMG, you can copy and paste text fields. Works with keyboard shortcuts and the right click context menu.

It doesn’t work in HTML5, if that’s any concern.

for widgets teh built in path is editable text boxes, those support ctrl c ctrl v and right click copy paste out of the box so the portable note idea works between two boxes.

for a real copy button or moving text without manual select, read the source with gettext then send that string to the clipboard, and on paste read the clipboard string and settext on the target box. check has text first so you dont paste an empty string when the clipboard holds an image.

you can also try Runtime Clipboard Utility, a plugin for Unreal Engine that copies widget text to the OS clipboard and pastes it back at runtime: Runtime Clipboard Utility — Free Copy & Paste Text Nodes for Blueprints (UE5) | Fab