Alternative for setPixel()?

Hello friends I am using setPixel() to draw texture but it is not fast. When I move my mouse quickly that time it prints gap between two textures instead of that I want continuous printing of texture, So is there any method for the real time texture printing? Please help me for this.
Thanks :slight_smile:

Why not just use GUI.DrawTexture?

fwiw you can use setpixelS and set a few at once. you don't explain if you're doing this on a 3D object, if you're trying to make a drawing app, or what ?

1 Answer

1

It’s not that it’s not fast, it’s that you’re taking the mouse’s position at a set interval and ignoring what happens in the middle. You need to fill in all the pixels from the last mouse position to the current mouse position.