# Custom hardware cursor doesn't work in packaged project

**URL:** <https://forums.unrealengine.com/t/custom-hardware-cursor-doesnt-work-in-packaged-project/428070>\
**Category:** Platform & Builds\
**Tags:** cursor, unreal-engine, bug-report, packaging-projects, UE4, question, CPP\
**Created:** [June 25, 2018, 6:51am UTC](https://forums.unrealengine.com/t/custom-hardware-cursor-doesnt-work-in-packaged-project/428070 "2018-06-25T06:51:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anonymous\_98c6b74f2e24661ea364bda890879506](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_98c6b74f2e24661ea364bda890879506](https://forums.unrealengine.com/u/Anonymous_98c6b74f2e24661ea364bda890879506)\
**Post date:** [June 25, 2018, 6:51am UTC](https://forums.unrealengine.com/t/custom-hardware-cursor-doesnt-work-in-packaged-project/428070/1 "2018-06-25T06:51:28Z")

</div>

I love to make game with UE4 so much, and I’d like to make it better with UE users and developers. I’m making a game which I think a custom hardware cursor is necessary.  
I make a UWG and set hardware cursor in Project Settings → User Interface → Hardware Cursor, all goes well but, it becomes the Windows native cursor in the packaged project.

* * *

Then I read the source code of UE4 roughly, and set breakpoint and check the call stack, and I found the class `FWindowsCursor` only called in constructor of class `FWindowsApplication`(derived from `GenericApplication`) which is created by `FSlateApplication`. I have poor knowledge about this framework and what `FSlateApplication` is, and I’m not a native English speaker, I 'm confused with the term “Slate”. Upon the above analysis, I reached the conclusion that the hardware cursor only take effect when the game is running in the small view port of UE4 editor, is there any problem?

* * *

When my solution configuration changed into DebugGame, it works. But symbols of WindowsCursor.cpp are not loaded. I don’t know anything can help, I just state what I did and what I obseved.

* * *

All right, is there any mature solution about this? I’m not giving up. A custom hardware cursor is still in my wishing list.  
Thanks a lot in advance.

* * *

I tried to use Windows lib functions such as `LoadImage` and `SetCursor` to make it, but the cursor change into native one as soon as I move my mouse. And, of course, it doesn’t work in packaged project.

---

<div class="post-metadata">

**Author:** ![byg\_ben](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@byg\_ben](https://forums.unrealengine.com/u/byg_ben)\
**Post date:** [June 26, 2018, 5:44pm UTC](https://forums.unrealengine.com/t/custom-hardware-cursor-doesnt-work-in-packaged-project/428070/2 "2018-06-26T17:44:23Z")

</div>

Did you check if your cursor images are being packaged? I read somewhere that putting them inside a directory called Slate means they’re automatically picked up for packages. Otherwise you might need to add the directory in which you’re storing them to the list of locations to package.

---

<div class="post-metadata">

**Author:** ![Anonymous\_98c6b74f2e24661ea364bda890879506](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_98c6b74f2e24661ea364bda890879506](https://forums.unrealengine.com/u/Anonymous_98c6b74f2e24661ea364bda890879506)\
**Post date:** [June 27, 2018, 7:18am UTC](https://forums.unrealengine.com/t/custom-hardware-cursor-doesnt-work-in-packaged-project/428070/3 "2018-06-27T07:18:13Z")

</div>

Oh god! It works! I put my cursor images in folder content/slate and modify cursor path in User Interface as what you said.

 ![245541-1uz-5arfzva8pc0d1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/d/7/fd7b5eab1e424ac045d4e9468aaec94547709901.png)

Here’s what you a discernment man said!

---

<div class="post-metadata">

**Author:** ![Anonymous\_98c6b74f2e24661ea364bda890879506](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_98c6b74f2e24661ea364bda890879506](https://forums.unrealengine.com/u/Anonymous_98c6b74f2e24661ea364bda890879506)\
**Post date:** [June 27, 2018, 7:23am UTC](https://forums.unrealengine.com/t/custom-hardware-cursor-doesnt-work-in-packaged-project/428070/4 "2018-06-27T07:23:13Z")

</div>

Do you have any idea about why cursors sometimes still perform the native styles when the game loads? My custom cursor shows after I switch into some other windows and refocus the game windows.

---

<div class="post-metadata">

**Author:** ![Anonymous\_98c6b74f2e24661ea364bda890879506](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_98c6b74f2e24661ea364bda890879506](https://forums.unrealengine.com/u/Anonymous_98c6b74f2e24661ea364bda890879506)\
**Post date:** [June 27, 2018, 7:45am UTC](https://forums.unrealengine.com/t/custom-hardware-cursor-doesnt-work-in-packaged-project/428070/5 "2018-06-27T07:45:55Z")

</div>

I found the issue here [https://answers.unrealengine.com/questions/697686/setting-a-custom-hardware-cursor-does-not-work-unl.html](https://answers.unrealengine.com/questions/697686/setting-a-custom-hardware-cursor-does-not-work-unl.html) , thanks a lot for your answer!

---

<div class="post-metadata">

**Author:** ![CoreRageS](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/corerages/32/917673_2.png) [@CoreRageS](https://forums.unrealengine.com/u/CoreRageS)\
**Post date:** [June 9, 2025, 6:32pm UTC](https://forums.unrealengine.com/t/custom-hardware-cursor-doesnt-work-in-packaged-project/428070/6 "2025-06-09T18:32:46Z")

</div>

How did you do it?  
Did you make a folder in Content and copy the path in Hardware Cursors?.. i need to know

---

<div class="post-metadata">

**Author:** ![Gruchatsu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gruchatsu/32/1137970_2.png) [@Gruchatsu](https://forums.unrealengine.com/u/Gruchatsu)\
**Post date:** [December 26, 2025, 10:29pm UTC](https://forums.unrealengine.com/t/custom-hardware-cursor-doesnt-work-in-packaged-project/428070/7 "2025-12-26T22:29:00Z")

</div>

Such problems are all solved in [Hardware Cursor Pro | Fab](https://www.fab.com/listings/a63196d2-aa18-43bf-87e5-e43bfde6ef7d) you dont have to worry about it as it happens automatically thanks to that plugin. It gives you a lot of features like very easy adding, configuring, animating your cursor, same functionality across all platforms (platform agnostic). Please check the trailer as it can be a good companion in fight with cursors 🙂 Trailer: [https://youtu.be/iZuUD3RVzyo](https://youtu.be/iZuUD3RVzyo)

---

<div class="post-metadata">

**Author:** ![Niier\_V](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Niier\_V](https://forums.unrealengine.com/u/Niier_V)\
**Post date:** [June 23, 2026, 2:46pm UTC](https://forums.unrealengine.com/t/custom-hardware-cursor-doesnt-work-in-packaged-project/428070/8 "2026-06-23T14:46:00Z")

</div>

```auto
## In DefaultGame.ini:

[/Script/UnrealEd.ProjectPackagingSettings]

+DirectoriesToAlwaysStageAsNonUFS=(Path="Root/Assets/Texture/UI/Cursor")

; Put your PNGs here
; Do not import the PNGs to your project, it won't do anything, they only have to be in this OS folder
; My directory is Content/Root/Assets/Texture/UI/Cursor; set your path value according to whatever directory you're using
; Without this the cursor will only show in Editor, not in packaged game

## If you don't want to edit ini, do it in the project settings instead

Project > Packaging > Packaging > Advanced > Additional Non-Asset Directories To Copy

> Add
> Root/Assets/Texture/UI/Cursor

## Changing hardware cursor:

#include "Engine/GameViewportClient.h"

...
...

GetWorld()->GetGameViewport()->SetHardwareCursor
(
	EMouseCursor::Custom,
	TEXT("Root/Assets/Texture/UI/Cursor/T_ClickCursor"),
	FVector2D(0.5f)
);

## Don't forget to laugh at beggars who try to sell basic functionalities for $50 in a forum post asking for help.

```
