- Home /
Detecting a mouse hover using an alpha channel not a rect
Hello,
I have a script that waits for a mouse enter on a GUI Texture. The texture is round with an alpha channel so you don't see anything but the round shape. When the mouse hits the edge of the rect it changes the image, but I'd like it to change when the mouse first touches the texture instead. Is this even possible? Any help would be awesome. Thanks
As a last resort you could set up a disk mesh the same size as the GUI and make it a child of the camera
@Scribe I did think of that but the problem is if the user changes the resolution then the mesh would be in the wrong place.
Your answer
Follow this Question
Related Questions
OnMouse functions not working properly on GUITexture when changing viewport rect 1 Answer
Reduce Draw call for Multiple GUI Textures with same Texture 1 Answer
How do I lock the mouse in an area? 1 Answer
guiTexture button hit area 0 Answers
Get texture coordinates of mouse when clicking on GUITexture 1 Answer