Change the color of a texture button's texture

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Sopsit

Hey. I’m newbie. Is there any way to change the color of a texture button’s texture via code?

:bust_in_silhouette: Reply From: Moreus

you can change texture im button

you can edit texture in run time

or make shaders

:bust_in_silhouette: Reply From: jgodfrey

Another option, if you’re just trying to change between solid-color textures…

You can probably get away with assigning a simple, white base-texture to the button. Then, you can assign new colors to the modulate property of the underlying canvas item to adjust the button’s color.