changing sprite color makes sprite disappear

i changed the sprite color in my script like this myRenderer.color = new Color32(255, 255, 255, 0); and now my sprite has disappeared ive looked further into this and found that the way i did it is probably not the besst route to take for what im trying to achieve but now my sprite has vanished, hes still there but you cant see him, can anybody help me get him back please? ive attached a photo

Color32(255, 255, 255, 0) fourth parameter is alpha… you set it to zero so its invisible. Change it to 255.

okay it seems id fixed it but had to restart unity to get it to stick sorry to ask prematurely

You’ve set the new color’s alpha (transparency) value to zero. Making the sprite completely invisible.

Color32 has four color values: Red, Green, Blue, and Alpha. You need to set the last value to something above 0 to make it visible. 255 = completely solid. e.g. myRenderer.color = new Color32(255, 255, 255, 255);