Invert mouse cursor colors

This is how a cursor looks like in the Editor inside a viewport. If background is black, a cursor color is white.
unknown.png

I want to make the same effect in the game I’m making but I can’t find where to start. Currently, I set a cursor in the Player Controller (Default Mouse Cursor).

Any ideas?

You must to create your own hud class with new cursor material.
That material must be translucent so you can get scene texture in it and modify as you wish.