applying textures without changing the color of the object

Sorry if this is a dumb question, I’m a newb to Unity.

I’m wondering if it’s possible to apply a texture to an object without replacing its current color?

e.g. if I have a blue sphere, and I applied a texture to it, I need everything to change but not its color (I want it to stay blue). Removing the color (or base map) sometimes helped but not with all the materials.

You need to write a shader that multiplies the texture by base object color.

Thanks for your reply, could you point me out to a good resource for learning how to build shaders?

Thanks.

var materials = renderer.materials
materials[0] = newMaterial
render = materials

Psuedo code but you could swap the materials on the renderer. Just have the new material be the same blue with a texture attached. Hope this helps.