i have a texture applied to a plane, and would like on screen touch to erase the selected location on that plane (like an eraser) so that in the location i have touched, the texture should be transparent. How can i do so?
This isn’t a trivial task. I would suggest looking at the UnityPaint project that is free to use. You may be able to get it to work for your needs.
Use a mesh collider for the plane, that way you can use RaycastHit.textureCoord to see what pixel is being hit. You can then change that pixel to transparent and upload the changed texture. Keep in mind that uploading textures is quite slow, so you’d want to keep the texture as low-res as possible. Maybe use multiple textures on multiple planes instead of one big texture, so that you only have to upload part of it at any one time.