Simulate press key

This ease my testing so much, thx. I am surprised this is not available with basic installation really useful to easily create in game test, worked as a charm. I tried at first but got a bunch of errors (Missing PhysX, win32 instead of win64, created for UE4 not UE5).

When looking here and there, they suggested using a bunch of timers, events and connections to do in game testing. Might not be the recommended way to test in game but for now, I am sold to the key pressed approach using your file.

To be honest that was one of the simplest things I solved so far with my unreal usage. (Work with Unreal 5.3 2023-12-15) Thx again!

1 Like

Glad you found it useful!

How do I make this work? I’ve copied it into the content folder, and its a C++ project. I am using UE 5.3.2, and I also tried 5.2. After coping, when I restart, it asks me to rebuild the project. After that, it doesn’t show up in the blueprint. Any idea what I’m doing wrong?

It shouldn’t be in the Content directory.

If your game is already a C++ project, you should have a Source directory (organized however was appropriate for your project); you want to put the .h file somewhere in that tree.