A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate
in the Unity community.
Introducing the new Universal Render Pipeline and High Definition Render Pipeline subforums!
Unity 2019.3 Beta is out now.
Discussion in 'Project Tiny' started by c0dt, Jan 7, 2019.
Can I use Render textures in tiny mode ?
I want to take a screenshot from my game.
var canvas = document.getElementById("UT_CANVAS");
var dataUrl = canvas.toDataURL();
// dataUrl contains the PNG image
When I do this, I only get a blank image the size of the canvas
Did you find a solution for this? I'm having the same problem.
Bump, really need this
Go to project settings and make sure you're using Canvas as rendermode.
After this, canvas.toDataURL() should work.
WebGL does not have the correct context for this. This also fixed my problem using canvas.getContext('2d').drawImage(...