[SOLVED] How i can reset sprite color?

Hello,

I set black color to my sprite following way

this.entity.sprite.color = new pc.Color(0, 0, 0);

But i unable to remove this applied color…

Need to help to unset applied color…

Hi @Ketan_ATA,

Your code seems fine. To unset though any applied tint color you are much better resetting to white:

this.entity.sprite.color = new pc.Color(1, 1, 1);
2 Likes

Wonderful! :slightly_smiling_face:
Nice and quick!! :ok_hand:

Thanks! :video_game:

1 Like