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. Dismiss Notice

Bug on Screenshot

Discussion in 'Windows' started by Joel-Santos, Aug 7, 2013.

  1. Joel-Santos

    Joel-Santos

    Joined:
    Feb 23, 2010
    Posts:
    121
    I think this is not a new bug... But it is happening again in this platform.

    The problem is that I want to take a screenshot in game with Application.CaptureScreenshot("file.png")and, although the game is set to run only in landscape mode, the screenshot is taken incorrectly:

    $woop.png

    As you can probably see the dimension are correct but the picture orientation is not.

    I've also tried the Texture2D encodetopng method, and it works on the editor, but on the device I always get a black screen :confused:

    Can anyone help me?

    Thanks in advance
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,445
    Hello.

    It's a known issue. It will be fixed in the next release.
     
  3. Joel-Santos

    Joel-Santos

    Joined:
    Feb 23, 2010
    Posts:
    121
    Thanks for the quick response. I'll wait for the next version then :)