Why mouse cursor is not showing on 4.11 p7?

In 4.11 when i PLAY in a New Window, the mouse cursor is not showing anymore.

  • What project template are you using (FirstPerson, ThirdPerson, etc)?
  • If you want the mouse to appear, create a new Player Controller blueprint, open it up, and then check the Show Mouse Cursor option in the blueprint’s details panel. Then, go to Edit->Project Settings->Maps & Modes and set that player controller as the default in your game mode.

Thanks for your help. Yes, if you have a Player Controller it works. But my game has no player controller, and if i add one, the game has strange behaviors. But on 4.10 it works fine, and the cursor shows always.

What do you mean when you say the game has strange behavior if you add your own player controller?

This is happening to me as well. Except I have a Player Controller, and have enabled the mouse to be visible. It was working just fine in Preview 6, then stopped working in 7. I tried making a test 3rd Person project, but the mouse did show up in it. So no idea what’s going on. But it worked perfectly fine in the Preview 6 build.

Edit: If I press Shift+F1 in the editor, the mouse will appear. But still won’t normally appear after using a Set Show Mouse Cursor node.

Did you ensure to set the player controller in your game mode to the one you have created? I just went ahead and did this and I was able to see the mouse cursor.

Also, what operating system are you using? That may make a difference

I’m just using the default player controller, haven’t changed it at all. And my operating system is Windows 8.

Edit: Update, this bug does continue into a packaged game. Mouse remains not visible. Also, while in the Editor, when you test the game, if you click outside of the editor, before clicking onto the game itself. The mouse will be visible afterward. But I believe that’s basically doing the same thing as pressing Shift+F1.

Here are the steps I am following on my end to get the mouse to appear:

  1. Create a new Third Person project
  2. Open the Third Person Character blueprint
  3. Right-click in the event graph and search for Get Player Controller
  4. Drag off of the Get Player Controller node and search Set Show Mouse Cursor
  5. Check the Show Mouse Cursor boolean
  6. Connect an event (I used Begin Play) to the Set Show Mouse Cursor node
  7. Compile

These steps should allow the cursor to appear in your game. Let me know if you have any further questions.

I tried that myself, and yes, it does work. The problem is I already have an almost complete game, that it was working on in Preview 6, and no longer is after the update to Preview 7. I literally changed absolutely nothing, besides updating the engine, and the mouse stopped appearing. I have everything set up the same as if It were a 3rd Person project. And I’ve worked on this game since 4.9. It’s worked perfectly fine until this last update. It’s probably some sort of individualized problem. Some settings or other content that’s different from the blank templates.

So my question now is, can I downgrade back to Preview 6? And how can I go about that?

I want to use the 4.11 preview, because it fixed other problems I was having. And I figure, without you having my game, we might not know what’s wrong otherwise. So this might be the simplest solution for now. Thanks again for your help.

I wasn’t aware that this was a project converted from a previous version. Thank you for providing that information.

I went ahead and created a project in 4.10, followed the steps in my above answer, and then converted that project to 4.11 Preview 7. My mouse did disappear as you stated. What I did to work around this was go into the World Settings and set the Game Mode override to my custom game mode that uses the player controller that shows the mouse cursor.

Thank you, that did work. The mouse shows up after overriding the Game Mode in World Settings.

Minor issue though, the UI Buttons still won’t recognize Hover events for some reason. But clicking on them works as expected. Kinda odd, but a lot better than having no mouse at all.

If you are having issues with your buttons recognizing hover events, feel free to open up a new Answerhub post regarding that issue, since it is different than the initial reported issue.

I am glad you were able to get it to work in your project.

Have a great day

What solution did you try, exactly? Could you provide a bit more information about what issue you’re experiencing? Is it only occurring in a particular project, or is it happening in a clean project as well?

I was in the same situation as Valmont Deimon but it still didn’t work for me. I don’t know why.

Its happening in only this project. I have tried everything I could find on the internet. I am using version 4.12.5. Mabe its a setting that has been set wrong. I have tried to print the Show mouse cursor variable to see if its a problem setting the variable or if its a problem and it wont set to true. Here is a screenshot of! the code I have tried to use to debug. The code is in the ThirdPersonCharacter

Fixed It: there was a problem with some custom events which were always setting the variable to false. Thanks for your help anyway though :slight_smile: