# Cursor cannot be permanently hidden

**URL:** <https://forums.unrealengine.com/t/cursor-cannot-be-permanently-hidden/1344260>\
**Category:** Programming & Scripting\
**Tags:** cursor, unreal-engine, question, UMG\
**Created:** [October 25, 2023, 9:00am UTC](https://forums.unrealengine.com/t/cursor-cannot-be-permanently-hidden/1344260 "2023-10-25T09:00:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![CryMasK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/crymask/32/1102297_2.png) [@CryMasK](https://forums.unrealengine.com/u/CryMasK)\
**Post date:** [October 25, 2023, 9:00am UTC](https://forums.unrealengine.com/t/cursor-cannot-be-permanently-hidden/1344260/1 "2023-10-25T09:00:13Z")

</div>

In my project, there is more complex interactive logic, so I want to handle the mouse cursor myself and hide the native one.

I tried to use ‘Set Show Mouse Cursor’ node and set the ‘Cursor’ option as ‘None’ in the widget.  
However, when I click on and leave the button, the native cursor appears. As shown in the below video (The red one is the correct cursor, and the arrow is the native cursor with a custom image. Also, the input mode is game and UI).

I found that this problem seems to be related to the button widget. If I set ‘Is Focusable’ to False in the button’s detail, the cursor will be correctly hidden.  
Does it work as intended? Or a bug?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 25, 2023, 9:32am UTC](https://forums.unrealengine.com/t/cursor-cannot-be-permanently-hidden/1344260/2 "2023-10-25T09:32:16Z")

</div>

> [@CryMasK](#):
>
> set the ‘Cursor’ option as ‘None’ in the widget.

Is this for _this very button_ or for the user widget that hosts it only?

> [@CryMasK](#):
>
> I want to handle the mouse cursor myself and hide the native one

Is this how you’re doing it?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/7/a/17a099a28bb85a1089a58a026369a20751e7be2e.png)

Or some other way?

---

<div class="post-metadata">

**Author:** ![CryMasK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/crymask/32/1102297_2.png) [@CryMasK](https://forums.unrealengine.com/u/CryMasK)\
**Post date:** [October 25, 2023, 10:15am UTC](https://forums.unrealengine.com/t/cursor-cannot-be-permanently-hidden/1344260/3 "2023-10-25T10:15:51Z")

</div>

> [@Everynone](#):
>
> Is this for _this very button_ or for the user widget that hosts it only?

I’m not a native speaker and do not fully understand your meaning.  
But I will try to explain more clearly.

In the video, the widget only contains one child (two descendants), the button with a text. And the widget is placed in a actor’s widget component with screen space setting.  
I set the ‘Cursor’ option as ‘None’ on the text, the button, and the widget. Therefore, the engine cursor did not appear when I clicked the button.

> [@Everynone](#):
>
> Is this how you’re doing it?
> 
> ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/7/a/17a099a28bb85a1089a58a026369a20751e7be2e.png)
> 
> Or some other way

No, I implement the cursor by adding a whole screen widget with a cursor widget which is followed the mouse’s viewport position.  
(The ‘Cursor’ options of these widgets are also set to ‘None’, too.)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 25, 2023, 10:22am UTC](https://forums.unrealengine.com/t/cursor-cannot-be-permanently-hidden/1344260/4 "2023-10-25T10:22:39Z")

</div>

> [@Everynone](#):
>
> Is this for _this very button_ or for the user widget that hosts it only?

> I set the ‘Cursor’ option as ‘None’ on the text, the button, and the widget.

All the elements of the widget then. 👍

* * *

Could you test if this would work here; in the widget:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/2/7/127082be025855e51b09bf0fe9f928979952ab44.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/9/3/393c6456a51ee6bb95b8d39fa1b56e253dfc6da5.png)

* * *

> [@CryMasK](#):
>
> I found that this problem seems to be related to the button widget.

Buttons are _notoriously_ finicky to work with. What you’ve described and shown should not be happening if the Player Controller does, indeed, hide the cursor.

> there is more complex interactive logic

Is there any other script / actor / widget in your project manipulating / effecting _hardware_ cursor and its visibility?

---

<div class="post-metadata">

**Author:** ![CryMasK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/crymask/32/1102297_2.png) [@CryMasK](https://forums.unrealengine.com/u/CryMasK)\
**Post date:** [October 25, 2023, 10:37am UTC](https://forums.unrealengine.com/t/cursor-cannot-be-permanently-hidden/1344260/5 "2023-10-25T10:37:53Z")

</div>

> [@Everynone](#):
>
> Could you test if this would work here; in the widget:
> 
> ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/2/7/127082be025855e51b09bf0fe9f928979952ab44.png)
> 
> ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/9/3/393c6456a51ee6bb95b8d39fa1b56e253dfc6da5.png)

Not working 😂

I will test this problem on a blank project later. For now, I think that I just can set all buttons as non-focusable.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 25, 2023, 10:39am UTC](https://forums.unrealengine.com/t/cursor-cannot-be-permanently-hidden/1344260/6 "2023-10-25T10:39:30Z")

</div>

> [@CryMasK](#):
>
> I will test this problem on a blank project later.

Do tell if you find out what is causing the cursor to pop back up.

> Not working

Does it trigger? Does it print, for example?
