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
2If 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
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
– WhiteLotus
my game is not running in a web browser(and used C#)
– anon47167959Hi .... 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 !!!
– VamshiKrishnaP