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

Download a texture via www or assetbundles, and then save it encoded to resources?

Discussion in 'Scripting' started by techmage, May 30, 2011.

  1. techmage

    techmage

    Joined:
    Oct 31, 2009
    Posts:
    2,133
    I want to download a texture, either through the www class or through an asset bundle, and then I want to save the encoded texture to the resources folder for quicker access later. How can this be done? I know saving out a PNG is simple. But how do I save out a texture in RGB16 or PVRTC format to the resources folder for later use?
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    There is no resources folder in a build, that's something which only exists in the editor. When you make a build, everything in resources is bundled into a file.

    --Eric
     
  3. techmage

    techmage

    Joined:
    Oct 31, 2009
    Posts:
    2,133
    Then is it possible to download a file, save it to disk, and then reload it in game any way?