Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

ReadPixels behaves differently between WIN and Mac web playe

Discussion in 'Scripting' started by schchang, Aug 22, 2008.

  1. schchang

    schchang

    Joined:
    Apr 11, 2008
    Posts:
    5
    When I use ReadPixels() to read from a RenderTexture, the content is upside down when running on Windows web player.

    But if reading from current render screen, both Win and Mac behaves the same.

    I think this is a bug in Unity engine.
    Has anyone encounter this problem before?
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    Not exactly, but I did find that ReadPixels() when reading the screen on an OS X widget is upside-down. Although rendering that screen to a RenderTexture and reading it is correct, which is what I used for a work-around in that case.

    --Eric
     
  3. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    No, it's not a known issue. If you have a simple project that shows the issue, file a bug (Help -> Report a problem) and attach the project.