Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

texture2d.Getrawpixeldata() image flipped

Discussion in 'General Graphics' started by econt, Nov 7, 2019.

  1. econt

    econt

    Joined:
    Apr 8, 2019
    Posts:
    52
    Hi,

    I want to make a screenshot every frame and send it via shared memory to another application.
    I get the screenshot and store it in the texture2D and read it out in a byte[] Array. The array is sent.
    byte[] bytes = screenShot.GetRawTextureData();

    It is received from the other App in shared memory - but the only problem is that the screenshot is flipped horizontly. - Is there a method it Unity that does not flip the screenshot?

    Thanks in Advanced