I have struggle with my project now, i need to take the print out from my unity scene.
Actually i have a scene which is have some model, i have a button in this screen when i click the button the screen should be take screenshot and it should be print in my printer. This is my function.
For the screen shot we can use Application.ScreenShot("Image.png")
But i dont know how to print this image by the printer.
Please help me to do this.
Use Application.CaptureScreenshot to make and save the screenshots and make a satellite application (a service maybe) that will watch the folder where the images appear and print them automatically.
It is still possible to use unmanaged code and call WinAPI functions in Unity, even in the free version. But it’s the hardest way, I guess.
If you don’t have Pro, you’re not going to really be able to ensure this works. I think a valid question is “why are you trying to do this anyway?” I mean, the last thing I want is a game wasting my ink/toner by printing more than zero screenshots.
Actually i need to print out the each and every object functions, when user interact with my scene they might have get more information, so they need to print out that information so that i need one button on my scene when the user click the button the corresponding scene(display) should print by printer.
This is the task assigned by my project manager.
and another doubt i have i got this line from some where in net “using System.Drawing.Printing”
i have tried in my monodevelop but it didn’t come, may be this will come only unity 4 versions?
When i press the “E” key the screen shot will save to this path “D:\Unity\Unity Projects\JPEG Encoding\Assets\unity”+count+“.png”
count will increase the each time you press the E button like this:
unity0.png, unity1.png, etc.,
Now i press the print button the the last image will be open in paint but its always open the first image , i dont know whats the problem in this.
Please help me to solve this.