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

NGUI in 5.1.3 unity no longer works on iphone 5

Discussion in 'iOS and tvOS' started by Raimis, Aug 19, 2015.

  1. Raimis

    Raimis

    Joined:
    Aug 27, 2014
    Posts:
    160
    Hello,
    I am facing some random error with what i believe is NGUI + gles2.0. I have just updated one of our projects that was working fine with unity 5.0.2p3 to 5.1.3p3 just to figure out that the game works fine with ipad air 2 (metal) but not with gles2.0 (iphone 5).

    We use textmeshpro to render texts and those display well, but all ngui content is not drawn at all. I tried both mono and il2cpp - neither work on iphone 5 (ios 8.something).

    I have skipped quite a few versions, so maybe there was something that could affect that in release notes... Any help would be appreciated.
     
  2. Dreamwriter

    Dreamwriter

    Joined:
    Jul 22, 2011
    Posts:
    472
  3. Raimis

    Raimis

    Joined:
    Aug 27, 2014
    Posts:
    160
    I'll check that, but wish older ngui would work, as in our project it has quite a few mods making textmeshpro work as it were original ngui component.
     
  4. Raimis

    Raimis

    Joined:
    Aug 27, 2014
    Posts:
    160
    After digging further, there must have been a change in unity related to how cameras work. NGUI stops working (even 3.9.2, latest at the moment) after camera is changed to Don't Clear. For us this was an option since we draw background manually over whole screen each frame anyway. This is NGUI problem, cause Text Mesh Pro works fine, it's just NGUI that fails to render.
     
  5. vexe

    vexe

    Joined:
    May 18, 2013
    Posts:
    644
    Hi @Raimis, just wondering if you found the reason or a solution to your problem?
     
  6. Raimis

    Raimis

    Joined:
    Aug 27, 2014
    Posts:
    160
    Hey @vexe, we were using "don't clear" flag on the camera since we were using a fullscreen background in our app. NGUI support was really rude, but their position on this was that "don't use don't clear flag if it doesn't work"... Even though it worked fine before. Hope this helps.
     
  7. vexe

    vexe

    Joined:
    May 18, 2013
    Posts:
    644
    Thanks @Raimis, we eventually downgraded to Unity 5.3.1 and things went back to normal again. It's just super annoying when major stuff just don't work in updates. Like how the f* did that go through QA?! It's better to delay your deadline for a working release rather than pushing through with a broken one.
     
  8. Raimis

    Raimis

    Joined:
    Aug 27, 2014
    Posts:
    160
    Well unfortunately that's just something you have to get used to while working with Unity and especially if you rely on 3rd party assets. Very good tool, but it's just so big that it's really hard to make it error free.