Hi, I want to read the Clipboard content in the editor, using the 's brush trick (you can alter the actor properties while in the editor). But the function PasteFromClipboard() depends of PlayerController, and in the editor there aren’t any.
If I execute the functions in game, then the content aren’t stored, so I need to use in the editor. I have used the brush trick but not using the clipboard.
What I want is to fill an array with a large text stored in Clipboard. It’s the dialogs actor, to store the dialogues and their variables without restarting the editor each time.
So there are some way to read the clipboard apart of the playercontroller?
Yes, spawning a controller it works. But not in the PostBeginPlay, as the game is not runing, it’s executed in the editor, in the Build() event of the custom brush. I did the controller placeable and placed it in the map.
Works perfectly, thanks to both.
the clipboard calls dont go through the player controller at all, they sit on FPlatformApplicationMisc and work anywhere on the game thread, editor included, so you can call paste and keep the returned string in a plain variable. spawning a controller just to read the clipboard is the long way round.