ScreenshotWebGL 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

by Marks (opens in new tab)

No ratings yet

Take screenshots on the web.

Price Free

Get it free on Asset Store (opens in new tab)

Affiliate link · Purchases support this site

Price history

Last 6 months

USD
Price history for ScreenshotWebGL, 6 months Current Free; lowest Free; highest Free in this period. $0 Jun Jul Aug Sep Oct Nov

Asset preview

1 / 1

ScreenshotWebGL screenshot 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:

  1. Apply it to a Unity texture to render it inside the game. This is what the example scene does.
  2. Upload it to an external server.
  3. Download, supported by ShareNSaveWebGL
  4. Share, supported by ShareNSaveWebGL
  5. etc

From the publisher's Asset Store listing.

Compatibility

Render pipelines supported in each Unity version
Unity version Built-in URP HDRP Custom
2019.4.40f1 Compatible Compatible Compatible Compatible

As listed on the Asset Store.