Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. The 2023.1 beta is now available for testing. To find out what's new, have a look at our 2023.1 feature highlights.
    Dismiss Notice

[HELP] Render textures in tiny mode

Discussion in 'Project Tiny' started by c0dt, Jan 7, 2019.

  1. c0dt

    c0dt

    Joined:
    Jan 24, 2016
    Posts:
    2
    Can I use Render textures in tiny mode ?
    I want to take a screenshot from my game.
     
  2. etienne_unity

    etienne_unity

    Unity Technologies

    Joined:
    Aug 31, 2017
    Posts:
    102
    romiohasan likes this.
  3. tomny

    tomny

    Joined:
    Sep 12, 2015
    Posts:
    16
  4. vrivotti

    vrivotti

    Joined:
    Feb 19, 2018
    Posts:
    2
    Did you find a solution for this? I'm having the same problem.
     
  5. tomny

    tomny

    Joined:
    Sep 12, 2015
    Posts:
    16
    Bump, really need this
     
  6. leppryt

    leppryt

    Joined:
    Jul 28, 2017
    Posts:
    3
    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(...
    canvas.png
     

    Attached Files: