View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.1
- Last updated
- First released
- Unity version
- 2019.4.40 or later
- Package size
- 211 KB
- Files
- 8
- Favorites
- 21
- Views in the past week
- 9
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- Free on
Keywords
ScreenshotWebGL
Take screenshots on the web.
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 1
ScreenshotWebGL screenshot 1
About this asset
This asset uses html2canvas under MIT; see html2canvas.min.jspre file in package(MarksAssets/ScreenshotWebGL/Plugins) for details.
Even though Unity has a built in way to take screenshots, it can only take screenshots of stuff happening in the game’s canvas. This asset can take screenshots of everything happening in the DOM. The main use for this asset is when your game doesn’t happen entirely in Unity’s game canvas. An example of such a use case is when you set the camera’s clear flag to depth only or solid color with alpha 0 to show the webcam feed of another plugin. In such a case, the regular screenshot method won’t work because the webcam feed is just an HTML video element and not a texture in Unity that you control.
You can do whatever you want with the screenshot, such as:
- Apply it to a Unity texture to render it inside the game. This is what the example scene does.
- Upload it to an external server.
- Download, supported by ShareNSaveWebGL
- Share, supported by ShareNSaveWebGL
- etc
From the publisher's Asset Store listing.
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 2019.4.40f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.