- Edited
Hey all!
I'm having a problem. I'm trying to hide the mouse cursor while at the same time allow me to use its input and location so that I can place a marker on the 3D floor, but I'm running into problems making the mouse cursor transparent.
First off I'm trying to do two things: 1. Confine the mouse cursor to the window using Input.set_mouse_mode( Input.MOUSE_MODE_CONFINED ) and since I can't also use Input.MOUSE_MODE_HIDDEN to hide the mouse cursor, I've decided to... 2. Hide the mouse cursor using a 10x10 transparent .PNG image file. (I could even use a 1x1 but even that still shows a dot on the screen)
But the transparency alpha appears black, not transparent.
As a result I'm getting a mouse cursor that has a black 10x10 area. Here is a picture:
I checked the documentation (here: "Importing images") concerning (re)importing images and PNGs to get alphas to work but nothing seems to do the trick (unless I'm overlooking something). Here's my current import settings:
I would assume there is a way to set the alpha on a texture by scripting it but I can't seem to find the documentation and I also can't seem to figure out how to access and modify a texture or loaded resource from script. Help!
So either A) I have some image/import settings incorrect B There is a script I can use when loading a resource that would allow me to manually turn on the alpha transparency C) There is a simpler way to go about all of this to get both a CONFINED & HIDDEN mouse cursor (CAPTURED won't work because I still want to be able to swing the mouse cursor around on the screen)