# \[Solved\] Always keep mouse cursor hidden?

**URL:** <https://forums.unrealengine.com/t/solved-always-keep-mouse-cursor-hidden/495750>\
**Category:** UI\
**Tags:** mouse-cursor, unreal-engine, Widget\
**Created:** [February 8, 2022, 3:34pm UTC](https://forums.unrealengine.com/t/solved-always-keep-mouse-cursor-hidden/495750 "2022-02-08T15:34:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blucifer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blucifer/32/701766_2.png) [@Blucifer](https://forums.unrealengine.com/u/Blucifer)\
**Post date:** [February 8, 2022, 3:34pm UTC](https://forums.unrealengine.com/t/solved-always-keep-mouse-cursor-hidden/495750/1 "2022-02-08T15:34:45Z")

</div>

Hi everyone,

Every time I open a widget, the mouse cursor will show up, anyone knows how to keep the mouse cursor always hidden?

I have tried with the “Show Mouse Cursor” bool node, but its not working, the mouse shows up anyway ☹

possible duplicated: [https://forums.unrealengine.com/t/hide-mouse-widget-confusion/428952](https://forums.unrealengine.com/t/hide-mouse-widget-confusion/428952) (image link broken)

---

<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:** [February 8, 2022, 3:42pm UTC](https://forums.unrealengine.com/t/solved-always-keep-mouse-cursor-hidden/495750/2 "2022-02-08T15:42:06Z")

</div>

Every widget can control cursor behaviour like so:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/0/1/80125a27a337e105e5a160c7599ed2fe81fb949a.png)

You’d set it to `None` for elements you wish not to display the cursor. The feature is well hidden in an Advanced Panel indicated with a white downward facing arrow.

* * *

Do tell if you get it to work the way you need. There could an exception where the widget has no focus and simply does not _know_ where the cursor is. But then the controller’s Show Mouse Cursor bool node would suffice.

---

<div class="post-metadata">

**Author:** ![Blucifer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blucifer/32/701766_2.png) [@Blucifer](https://forums.unrealengine.com/u/Blucifer)\
**Post date:** [February 8, 2022, 4:12pm UTC](https://forums.unrealengine.com/t/solved-always-keep-mouse-cursor-hidden/495750/3 "2022-02-08T16:12:47Z")

</div>

Thanks again @Everynone  
Its working! 🙂👍

Just one more thing, would be recommended to create all the widgets within the HUD class instead of create the widgets inside different blueprint (eg: player controller class, actor class)?

Because now I have to change the mouse cursor behaviour on each of my widget bps 🥲 😅

---

<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:** [February 8, 2022, 4:57pm UTC](https://forums.unrealengine.com/t/solved-always-keep-mouse-cursor-hidden/495750/4 "2022-02-08T16:57:50Z")

</div>

> [@Blucifer](#):
>
> create all the widgets within the HUD class

There is a reason why one would want that but that has more to do with managing all widgets in a single framework class accessible from anywhere in your code - can be nifty. And the HUD has some cool functionality you can’t get anywhere else.

> Because now I have to change the mouse cursor behaviour on each of my widget bps

You’d still need to set it up for every widget anyway, I think.

* * *

Once you flag the root’s cursor as None, the children (buttons, border, text) will respect that or can override it. So you could play with this programmatically:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/f/d/2fd0f94f5477ce2d7c15eb32e28cc44ed8eb03cd.png)

Give each widget an interface, fetch them all and set their cursor to none. Or call it for every widget that you create. But that’s already a lot of clicking.

* * *

Perhaps you could create an empty, blank widget with the cursor set to none and have all other widgets inherit from that:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/e/b3ec61fff89db6eb5d1d68fcf18123d8975a30b6.png)

This will now become a default setting for the root. But that’s as much clicking as setting it manually.

* * *

Another way:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/4/3/043732e3059001ff45b1825f39b7d912a1ffe6ee.png)

Create a widget that is transparent and use it as a cursor.

* * *

At this point I’m not sure if you do not want mouse-widget interaction or simply want to hide the cursor but be able to interact with widgets. Perhaps you can just make the root `not hit testable`:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/f/c/dfc273ebf1831e76e0a33a08b8f8af23c75b9df7.png)

In which case the inheritance method mentioned above would work well.

---

<div class="post-metadata">

**Author:** ![Blucifer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blucifer/32/701766_2.png) [@Blucifer](https://forums.unrealengine.com/u/Blucifer)\
**Post date:** [February 8, 2022, 7:32pm UTC](https://forums.unrealengine.com/t/solved-always-keep-mouse-cursor-hidden/495750/5 "2022-02-08T19:32:51Z")

</div>

> At this point I’m not sure if you do not want mouse-widget interaction or simply want to hide the cursor but be able to interact with widgets. Perhaps you can just make the root `not hit testable` :

I just want to hide the OS cursor 🙂

@Everynone thanks a lot, you are a wonderful person! Really appreciate all the help 🌟 🌞
