Colorize ImageOnlyButton when onPointerEnterObservable

Hello ,

Please i need to change the color of a ImageOnlyButton to yellow when onPointerEnterObservable .
Any help ?

Thanks a lots

Hey Mixofo,

How about this?

https://playground.babylonjs.com/#XCPP9Y#8643

Cheers!

1 Like

Building on what @kestrelpi suggested you could also animate (lerp) the alpha of the child image so that the yellow background of the parent displays on pointer over.

https://playground.babylonjs.com/#XCPP9Y#8644

1 Like