Change color of one pixel of a texture

Hi,
I am using this lines of code to change the color of a texture from red to pink:

texture = Texture2D.redTexture;
material.mainTexture = texture;
 
// Reset all pixels color to pink
            Color32 resetColor = new Color32(255, 0, 255, 0);
            Color32[] resetColorArray = texture.GetPixels32();
 
            for (int i = 0; i < resetColorArray.Length; i++)
            {
                resetColorArray *= resetColor;*

}

texture.SetPixels32(resetColorArray);
texture.Apply();
Now I would like to change the color of one pixel only… How could I do that? thank you!

Use Texture.SetPixel instead

             texture.SetPixel(x, y, color);
             texture.Apply();