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

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,644
    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!