Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How to actually load Content.DownloadedContent?

Discussion in 'Unity User-Generated Content' started by Evil-Otaku, Oct 17, 2023.

  1. Evil-Otaku

    Evil-Otaku

    Joined:
    Oct 17, 2012
    Posts:
    71
    The documentation is light on this part. It shows how to load a DownloadedThumbnail as a sprite. But I've got a couple of prefabs uploaded, and there isn't a way to convert the byte[] back to a prefab. I've done it with the Simple Content Selection Step and the Asset Bundle Selection Step.
     
  2. g3nuine3

    g3nuine3

    Joined:
    Feb 13, 2018
    Posts:
    11
    Can you show how you upload/serialize the prefabs?
     
  3. Arnaud_Gorain

    Arnaud_Gorain

    Unity Technologies

    Joined:
    Jun 28, 2022
    Posts:
    173
    We will update our doc with an example as well
     
    Evil-Otaku likes this.
  4. Evil-Otaku

    Evil-Otaku

    Joined:
    Oct 17, 2012
    Posts:
    71