problem trying to color a texture in default

hello guys from the forum, someone of you could give me a tip, how to color a texture in default to be in albedo, I tried everything that is, except the setpixels because I did not understand was nothing

already used the material.color, maintexture, setcolor nothing else hits it,some of them are these but nothing happens, is it possible?

        texture.material.SetColor("_UVSec", color);
        texture.material.SetColor("_MainTex", color);

You can color texture using setpixel only. Texture does not have any material or color except the color of it’s pixels. This code calling setcolor on the local copy (i believe) of default editor material for texture. This copy is not going to be used anywhere. But this is not what you want, what you want is to change material or shared material color in renderer. You must have in your project some materials using that texture. Set up one of that materials into renderer and do renderer.sharedMaterial.SetColor(…). After that all renderers using that material will change colors. If you want to change color in one renderer, then do renderer.material.SetColor(…), this will create a copy of material specific for that renderer.