Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: Not Selected
more ▼

asked Oct 20 '14 at 04:15 AM in Blueprint Scripting

avatar image

21 3 5 10

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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

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:

alt text

alt text

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

alt text

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) :)

Here's a video of everything in action (running as a standalone game): http://youtu.be/de-bpGuQTdo

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

more ▼

answered Nov 02 '14 at 11:29 AM

avatar image

21 3 5 10

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question