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

How to pack textures into atlas, loaded from server

Discussion in '2D' started by Tongie, Apr 27, 2015.

  1. Tongie

    Tongie

    Joined:
    Sep 19, 2012
    Posts:
    90
    Hi, I am loading 6 image from my server to the client side, these 6 image are always changing, which data path do I save to on the iOS and Android devices and how do pack them into atlas after downloaded them?
     
    Last edited: Apr 27, 2015
  2. TomasJ

    TomasJ

    Joined:
    Sep 26, 2010
    Posts:
    256
    You can use GetPixels/SetPixels API to create a large texture out of smaller ones. And the WWW API to download image data from a server.
     
  3. Tongie

    Tongie

    Joined:
    Sep 19, 2012
    Posts:
    90
    "You can use GetPixels/SetPixels API to create a large texture out of smaller ones." can you explain this in more details, i dont really understand?

    Is it i pack 6 empty image into atlas first. then after i load the image from the server i set the pixels onto the empty image?
     
    Last edited: May 6, 2015