Hovering Only The Colored Part Of An Image With Transparent Background (Widget)

Hey!
Im using .PNGs for my User Interface In Widgets.
Is it somehow possible to Hover only the “colored parts” on an image instead of the whole square or rectangle where its transparent?

I dont like that the Hover starts even when im hovering the transparent part of the image.

So the Hover should only be recognized when im hovering the colored part of the image and not the transparent part of the square or rectangle.

Is that somehow possible?

Thanks in advance!

Hey @Gazu!

So there really isn’t a great way to go about this. Images in the UI are rectangular and all one piece, regardless of alpha channel of any specific pixels.

One thing you could do is attach it to a canvas, have the canvas be the hoverable item, and check vs alpha to make sure alpha is >0, and if it is then execute hover code! :slight_smile:

Hey Mind-Brain!

Thank you for your answer.
I will try it out and come back to you!

Thanks! :slight_smile: