- Home /
Question by
saadjumani · Oct 21, 2020 at 07:39 AM ·
webglscripting beginnerbrowserscriptingproblemprinting
How to access printer from Unity WebGL?
Hi, I am working on a browser based WebGL project for a client and at one point they need the PC to print a receipt with player's score on it. I have no clue on how to go about requesting a printer to print anything. Any pointers would be appreciated.
Comment
Answer by Klarzahs · Oct 21, 2020 at 12:09 PM
Hi @saadjumanji,
you can divide your problem into two, making them easier :) You can use a Javascript Library to access your printer, and you can use Unity to call a JS function in WebGL.
Have a look at this unity manual for JS Function embedding/calling and
Have a look at this tutorial for an example printer access
Note that I didn't test it.