[SOLVED] How i can reset sprite color?


#1

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…


#2

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);

#3

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

Thanks! :video_game: