Search Unity

iOS - png loading workaround?

Discussion in 'Editor & General Support' started by ccklokwerks, Apr 3, 2018.

  1. ccklokwerks

    ccklokwerks

    Joined:
    Oct 21, 2014
    Posts:
    62
    Hi all,

    Today I ran into this horrible bug:

    https://issuetracker.unity3d.com/is...-when-loading-png-file-from-www-or-webrequest

    So, in my particular case, I have a build I want to make which uses VR, and uses downloaded png textures for pins, and now the program can crash on png load.

    I tried avoiding the use of WWW (download the file and then use File.ReadAllBytes and Texture2D.LoadImage) but I still get the crash. I am guessing that the problem is not related on to using WWW or WebRequest which the bug reporter mentioned.

    If I am not going to be able to make VR apps for a while that would be good to know...

    Can anyone suggest a workaround? (Short of using JPGs, which would not be transparent...) It would also be great to know if/when a patch with this bug fix will be released...
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,732
    This bug is in pipeline, we are rolling out a fix for 2017.1 and later releases.
    I'm afraid there's no workaround for it.
     
  3. ccklokwerks

    ccklokwerks

    Joined:
    Oct 21, 2014
    Posts:
    62
    I'm glad to know that it's in the works. VERY much appreciated!