RadiantUI plugin mouse focus

I would like to know how to make the game window grab mouse input using only Blueprints if it currently does not have focus, or at least how to transition from a user clicking on a menu in the RadiantUI and entering the game without having to click a second time.

Here is some backstory and explanation:

I purchased a copy of the Radiant SDK plugin thinking that I could implement a standard menu screen as shown here:

It looks as though when you click "New Game" it loads the game and the player can start playing.

The problem is that the actual demo doesn’t work as expected, in that clicking the button does indeed load the level, however the player must then click the game window again for it to get mouse focus, or capture mouse input.

If you look closely at the video you can see that the mouse cursor is still visible after the menu disappears and the level loads, and then disappears – this might sound like a minor inconvenience however most games give the player control of the avatar after you click “New Game” or “Resume” from a menu.

The CoherentUI demo has this functionality, so I know it’s possible to implement, however RadiantUI does not. I’ve written to the author of the plugin asking whether he had a solution and he told me to go on the forums and answerhub. I am looking for a Blueprint solution to this problem given that Radiant is a Blueprint-only plugin and I’d like to stick with that instead of resorting to a C++ hack to overcome this problem.

I’ve suggested to the author that other users of his plugin might also be interested in a solution for this, and that it would be a handy part of his documentation. The plugin cost $99 and does not achieve what I bought it for, and while it could be argued that you can see that the user needs to click the game window to start playing in the demo video, it’s something that you wouldn’t expect and easily missed.

Anyway, I’m left with a plugin that doesn’t do what I’m after so I’m asking for help on the forums as suggested by its author because he has a no-refund policy.

If anyone is using Radiant and has overcome this problem or anyone simply has a solution to making a game window grab mouse input using only Blueprints I am very interested.

I’ve just solved this problem myself, and thought I’d post if anyone else is having the same issue :stuck_out_tongue:

I came across this question and saw the “Set Input Mode Game and UI” command in the answer’s screenshot:

So in my case I want to use the variants “Set Input Mode UIOnly” for the menu and “Set Input Mode Game Only” for the game:

Also make sure the map that gets loaded when the game starts is the RadiantDemoMainMenu.

I had been thinking that I had to change the game mode or something like that, but it turns out that the trick was to just start the game with the Main Menu level instead of the default Radiant Demo level – I’m not sure how the level determines which HUD/GameMode gets loaded but I’ll work that out (someone feel free to reply about that anyway) :slight_smile:

Here’s a video of everything in action (running as a standalone game): - YouTube

(Note: I’m using RadiantSDK_SU Beta 6 for Unreal Engine 4.5)