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

Loading a png texture from persistent data.

Discussion in 'Scripting' started by itachi4365, Apr 23, 2014.

  1. itachi4365

    itachi4365

    Joined:
    Sep 24, 2012
    Posts:
    40
    Hi,
    I am taking some in game screenshot then I have to display the screenshots in a in-game gallery. I am not able to figure out that how would I be able to retrieve the png images I save.
     
  2. KelsoMRK

    KelsoMRK

    Joined:
    Jul 18, 2010
    Posts:
    5,539
    Easiest way is to use the WWW class to load the PNG file. WWW has properties and methods for turning the file into a texture that Unity can use.