I would like to print something out

How can I print someting out with Unity? I would like to simply push an in-game button and get a paper from the printer. How is that possible?

2 Answers

2

If your game is running in a web browser, you could ask the browser to print something out using the javascript function document.print();

Invoking javascript from Unity is done using

Application.ExternalCall() or Application.ExternalEval()

See this page for more information about Unity-to-Browser communication: http://unity3d.com/support/documentation/Manual/Unity%20Web%20Player%20and%20browser%20communication.html

my game is not running in a web browser(and used C#)

Hi .... Yes i tried to print using document.print() . However am unable to get the print of Unity scene output. It only prints HTML of the web-browser. Any help is appreciated !!!

I have let unity write some information to a text file. I also made a print application who knew when I file changed. As soon as Unity wrote information to the textfile this application used the information to print a page.

hello, i am also trying to print, specially images from my app made with unity for various plateforms can you guid me how can you manage printing stuff