Search Unity

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

Question webrequest trying to get transparent texture always shows texture as question mark (failed)

Discussion in 'Web' started by MadeFromPolygons, Jan 20, 2021.

  1. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,945
    I am trying to download a texture using webrequest and it always comes as a red question mark (failed). This happens when using any webrequest on a texture with transparency.

    Normal textures load just fine using same code.

    Can anyone please help? Does WebGL 1.0 even support transparent images?
     
  2. xeniaosense

    xeniaosense

    Joined:
    Aug 4, 2020
    Posts:
    3
    I believe WebGL 1.0 also support transparent images. I've also run into red question mark when loading textures from web, it was either because the resolution was too high or because the color space was in CMYK. So maybe you can check your transparent image files?

    I'd also want to know more scenarios on what may cause a texture loading failure.
     
  3. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,945
    We are investigating what is causing, so far its definately not resolution but will look into CMYK format and get back
     
  4. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    953