Adapt custom cursor based on resolution

Hi,

I customized my cursor, no problem, everything works.

My problem is that I can’t adapt my cursor depending on the resolution.

As with my other widgets, I tried using a scale box but the slider does not resize. I then added a size box but there depending on the choice of options for the size box, the cursor is completely offset in game.

14

Thank you for your answers.

So if I understand correctly, you would like to resize the course depending on the screen resolution?

I have tackled a similar problem, however, I did not find a clean fix. I had a lot of widgets that I wanted to increase or decrease in screen space as you scroll in and out. My fix is a little hack, but it works. On scroll, I would update the size of the widget, all driven from a curve. In theory, you could query the screen resolution and use a similar curve to set the size of the cursor.

Hi,

Yes because I have buttons to modify the resolution (720,1080,4k) and the cursor with a size box is totally offset from its origin.

So I was wondering if in the blueprint, we couldn’t instead use something to correctly define its origin so that it is displayed correctly.

For all my other widgets I have no problem, I use a scale box and a uen size box and the resizing is done correctly with all resolutions but for the cursor it’s different.