I am using following code to download Play canvas as image but I am getting blank image so, anyone please guide me what is the wrong with this code.
var app = pc.Application.getApplication();
var canvas = app.graphicsDevice.canvas;
var imgSrc = URL.createObjectURL(blob);
var link = document.createElement(‘a’);
link.download = “myScreenshot.png”;
link.href = imgSrc;
Thanks in advance.