Change certain colour on button

Hi all

So I have a sprite button which is a blueish colour and would like to change the colour on the hover and pressed states. Problem is I also have a white icon on said button. And I dont want to affect the white part of the image. Only the blue.

I know i could add the icon as a child atop the image but I have other things going on in my scene that prevent me from doing so.

So Basically is it possible to change colours only on certain colours of button or rather not change my white and all other colours.

Hope thats clear to undertand. Thanks

If I understand right, you have a textured GUI, and you want to change the colour of the texture when someone hovers over it? There’s a couple of ways you could do this, the best way being making a new texture you want the button to be when someone hovers over it. Firstly, take a look at this :

This is how you can detect if your mouse is over the button.
Secondly, you want to be able to change the texture. Take a look at this :