I’ve been taking care of all the deprecated warnings in my 4.18 code and changed “FGenericPlatformMisc::ClipboardCopy()” to “FPlatformApplicationMisc::ClipboardCopy()” as demanded by the compiler. It compiles fine, but refuses to link now. The error msg is:
Sad that I’ve been testing the " FGenericPlatformApplicationMisc::ClipboardCopy(*Str)", it didn’t work on PC, check this topic twice, I finally realize that correct function is “FPlatformApplicationMisc::ClipboardPaste(*Str)”
link error is the missing module. clipboard lives in ApplicationCore, not Core, so add ApplicationCore to PublicDependencyModuleNames in your Build.cs and include HAL/PlatformApplicationMisc.h where you call it. then FPlatformApplicationMisc::ClipboardCopy works.
and for the followup in this thread, copy is OS-wide, not unreal-only. once the call succeeds you can paste into any text editor with ctrl+v, the earlier confusion was just the wrong function name (paste vs copy).
if you want the same thing without c++, runtime clipboard utility from fab wraps copy and paste as blueprint nodes, handy when designers need it.