Setting hardware cursor hotspot

Hi

I have cursors that i want to include in the game. Im using hardware cursor implementation and setting cursors via “Set Hardware Cursor” function like this

Then i would like to include cursor, that has hotspot in the middle

245886-attackcursor.jpg

But hotspot doesnt set properly
Cursor dimensions are 30x30 and if hotspot x and hotspot y are set to 15, nothing changes- hotspot is still probably 0, 0

But if i change cursor shape to crosshair, it isnt applied and changed

Any help is appreciated. Thanks

Should the cursor shape be set to crosshairs?

No, I only want cursor to be positioned like crosshairs cursors usually are

Hey

Thanks for this info, but it doesn’t fix my problem.

It would be best to look at this video, which shows cursors even after applying 0.5, 0.5 to the “crosshairs” one.

Hello darkneess10,

You will need to provide a 0-1 value. This means that if you want the center of the image, you will need to put in 0.5, 0.5. I hope that this information helps.

Make it a great day

Thanks everyone for answers

I would like to say that there was something wrong with my cursor and after using some other it worked correctly.

Hotspot needs to be set as 0-1 value (as mentioned by Rudy Q) and it works great.

I have question

when I setup my cursor I got this error

LogHardwareCursor: Error: Failed to load cursor ‘…/…/…/…/…/…/Users/Kyle-PC/Documents/Unreal Projects/MarsWars/Content/Slate/CustomPointer’. If you included a file extension or the size information ‘_WidthxHeight’ remove them.

anyidea?

hey

Are you sure that this path to cursor is correct?
My cursors are located:

http://prntscr.com/lggdn1

Try fixing path first.
You have to include filename of cursor without .cur name.
And as answered below, hotspot must be between 0 and 1