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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Save a display view

Discussion in 'Scripting' started by _HAL_9000, Apr 15, 2016.

  1. _HAL_9000

    _HAL_9000

    Joined:
    Jun 26, 2015
    Posts:
    48
    Hello Everyones !
    Currently I have two camera in my scene, the first only render a gameobject and the second only render the UI.
    I made them all render onto "Display 1" in the order I wanted, now I would like to save the pictures displayed by "Display 1". I looked Application.CaptureScreenShot, the renderTexture method but it seems they work on camera only. Is there a way to do this ?
     
  2. KelsoMRK

    KelsoMRK

    Joined:
    Jul 18, 2010
    Posts:
    5,539
    CaptureScreenshot works regardless of how many cameras you have.
     
  3. _HAL_9000

    _HAL_9000

    Joined:
    Jun 26, 2015
    Posts:
    48
    Thanks for the response !
    I work with CaptureScreenshot now, but I wonder is it a good way to proceed if I want to save many picture (25 per frame), I do not care about the framerate. If it is not is there another "cleaner" way to do this ?
     
  4. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    KelsoMRK likes this.