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"

How do i show the mouse cursor?

How do i show the mouse cursor? currently i have a player character pawn and there is no show cursor option in the blueprint file but there is one in the player controller? is there a way to enable this for a character pawn or integrate the two? Thanks.

Product Version: Not Selected
more ▼

asked Nov 28 '14 at 11:07 PM in C++ Programming

avatar image

267 68 61 80

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

2 answers: sort voted first


you posted this in the C++ section but mentioned Blueprints, so i don't know what you want to use.

In your CharacterBP, you can just Right Click and search for "Get Player Controller" in the Context Menu.

You can cast the return value of this to your own custom Player Controller class if you have one. Then you just drag out the return value of the Get Player Controller or of the Cast node and search for the bool "Show Mouse Cursor". Set it to true and you can see the Mouse Cursor. There are some more Bools and Functions to enable Click Events etc.

In c++ there are several ways to get the Player Controller.

One example would be this:

 APlayerController* MyController = GetWorld()->GetFirstPlayerController();
     MyController->bShowMouseCursor = true;
     MyController->bEnableClickEvents = true;
     MyController->bEnableMouseOverEvents = true;

If you still have questions, feel free to ask me.

more ▼

answered Nov 28 '14 at 11:20 PM

avatar image

6.8k 333 185 468

avatar image AndrewM47 Nov 29 '14 at 01:04 PM

Yes, that didn't work like i said its not a player controller its a player character that's why i was asking how to show a mouse cursor in player character.

avatar image eXi Nov 29 '14 at 06:03 PM

Thats why i showed you how to access the PlayerController in your Character Class. The ShowMouse bool is only available over the PlayerController.

avatar image Tarabakti Nov 06 '17 at 09:27 AM

work fine! but if a change player controller default with my player controller in world settings this procedure don't work, why?

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

there is a easy solution for this but u will have to do this everytime u create a new map. Open Level Blueprint: alt text

By Blueprint > Level Blueprint Then .... alt text

Thats all

blueprint.png (47.1 kB)
mousecursor.png (50.3 kB)
more ▼

answered Nov 01 '17 at 12:10 PM

avatar image

343 3 6 15

(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