I am trying to do like a scratching effect on a texture so that when the user drags his finger on the screen, the texture below the first one should appear (but only in places where the upper texture is "scratched"). I suppose I should somehow paint the upper textures alpha channel so that it is invisible in the places where use drags (using another texture as a brush).. this code below works but of course it's not good because this happens every frame if the user is dragging so soon Unity will run out of memory (every frame the new texture is instantiated). Well actually my question is.. how to do this right so that it works on mobile devices. Thanks for any help!
i edited the code.. sorry I pasted the wrong one. In this code I am using the new instantiated image..
You don't need to instantiate a new texture each time, you aren't even using it.
answered Apr 03 '12 at 11:54 PM