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"

show mouse cursor problem

i put a coding in c++ for mouse cursor but it is not able but its run and compiled successfully whats the problem for this? and also in backside of UMG my game is running to pause that also otherwise after complete the full UMG it can work put some solutions of this problem

Product Version: UE 4.12
Tags:
more ▼

asked Aug 17 '16 at 11:47 AM in Using UE4

avatar image

Karon Jacob
12 3 6 11

avatar image indygoof Aug 17 '16 at 01:53 PM

Without any screenshots and/or code, we wont be able to really help you i fear.

avatar image Karon Jacob Aug 18 '16 at 09:17 AM

alt text

capture.png (47.3 kB)
avatar image ImVawx ♦♦ STAFF Aug 17 '16 at 03:20 PM

Hey Karon,

You can show the mouse cursor by using your PlayerController class. There is a bool value you can set to true which will make the mouse cursor show.

As such:

[YourPlayerController.cpp]

 YourPlayerController::YourPlayerController( )
 {
     bShowMouseCursor = true;
 }

avatar image Karon Jacob Aug 18 '16 at 09:20 AM

i put that coding for my player controller but still its not working i try some another coding also

 bShowMouseCursor = false;
 FInputModeUIOnly Mode;
     Mode.SetWidgetToFocus(widget->GetCachedWidget());
     GetWorld()->GetFirstPlayerController()->SetInputMode(Mode);
     GetWorld()->GetFirstPlayerController()->bShowMouseCursor = true;


what can i do ?

avatar image BujakD Aug 18 '16 at 10:24 AM

Hello,

maybe something is overriding bShowMousCursor and setting int back to false? Try to set bShowMouseCursor = true in Tick function of your player controller.

avatar image Karon Jacob Aug 18 '16 at 11:11 AM

thanks for reply

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

1 answer: sort voted first

to put the event tick function for the player controller

             void AJacobPlayerController::Tick(float DeltaTime)
             {
               bShowMouseCursor = true;
              }
more ▼

answered Aug 18 '16 at 11:11 AM

avatar image

Karon Jacob
12 3 6 11

(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