hello, do you know how I can draw with my mouse on textures? or other drawing tricks? I speak in from the side of the editor not in the gameScene. Below a sample code:
asked Mar 22 '10 at 08:50 AM
You can use Texture2D.SetPixel(...) to set the color of an individual pixel on a texture. If your texture is on the GUI, it should be fairly easy to compute its position using its rectangle, which you can then offset from the Mouse position in order to get the pixel coordinates of the pixel that the mouse is over.
If this texture is in 3D space, however, you can check out my other answer here:
which details how you can Raycast to get which pixel the mouse is pointing at.
answered Jun 08 '10 at 10:01 PM