Search Unity

[HELP] Render textures in tiny mode

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

  1. c0dt

    c0dt

    Joined:
    Jan 24, 2016
    Posts:
    1
    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:
    54
    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:
    2
    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: