Author Topic: Bug: NullReferenceException after LoadLevelAdditive on iOS  (Read 2075 times)

AbsurdInteractive

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Bug: NullReferenceException after LoadLevelAdditive on iOS
« on: July 02, 2014, 12:41:34 AM »
I seem to be having the same issue as this forum post in iOS with stripping enabled:

http://www.tasharen.com/forum/index.php?topic=3277.0

Our game requires stripping, so if that is the issue I'm not sure how to solve it. It also seems to happen after a LoadLevelAdditive.

Here is my exact error in xCode:
  1. NullReferenceException
  2.   at UnityEngine.Component.get_transform () [0x00000] in <filename unknown>:0
  3.   at UIDrawCall.get_cachedTransform () [0x00000] in <filename unknown>:0
  4.   at UIPanel.UpdateDrawCalls () [0x00000] in <filename unknown>:0
  5.   at UIPanel.LateUpdate () [0x00000] in <filename unknown>:0

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Bug: NullReferenceException after LoadLevelAdditive on iOS
« Reply #1 on: July 02, 2014, 05:40:29 AM »
You can't use stripping with NGUI. Stripping effectively removes code from Unity that is used by NGUI.