x

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"

why doesn't SetShowMouseCursor work when in GameAndUIMode/UIMode

I have a menu that for the most part requires the mouse.. but at a certain menu i want to just wait for a key to be pressed and the mouse screws things up

Product Version: UE 4.20
Tags:
more ▼

asked May 16 '19 at 03:59 AM in Using UE4

avatar image

SpudCrowley
7 1 1 3

avatar image Caroo May 16 '19 at 06:27 AM

Can you elaborate a little more? What exaclty is not working?

avatar image SpudCrowley May 16 '19 at 09:45 PM

I just wanna make the mouse disappear when input mode is GameAndUI or UIOnly.. instantly disappear.. and not be able to click anything

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

1 answer: sort voted first

In UI Only mode the cursor may be defined by the widget, not the player controller. You can disable the cursor in the widget's detail panel by setting Cursor to None:

Detail Panel

properties.png (25.5 kB)
more ▼

answered May 16 '19 at 09:35 AM

avatar image

KristofMorva
1.4k 5 5 7

avatar image SpudCrowley May 16 '19 at 09:44 PM

Just tried it... makes the cursor invisible after a click is made.. but doesnt stop it from clicking at all

avatar image KristofMorva May 16 '19 at 09:50 PM

No it doesn't stop clicking because the cursor is still there, just hidden. If you want to get it out of the way completely, you can just move it to (0, 0) or (1920, 1080), with something like SetMouseLocationOnViewport I believe.

avatar image SpudCrowley May 16 '19 at 10:01 PM

nice nice i dig it.. .but how do i keep focus on a widget who's input i desperately need heard.. even when the player is mindless accidentally clicking over in the corner without realizing it... thank you for the help btw

avatar image KristofMorva May 16 '19 at 10:03 PM

Well it's kinda hacky, but you can check in each tick if HasKeyboardFocus your widget, if not, SetKeyboardFocus :D

avatar image SpudCrowley May 16 '19 at 10:12 PM

yes I found a similar solution involving making a huge invisible background button that when clicked on sets keyboard focus.. thanks!

(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