Author Topic: errors occur when running my game in xboxone, please help me.  (Read 2323 times)


  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Hi, I'm Ryoh.

I'm importing my game for ios/Android to Xboxone.
The game is quite old so using NGUI 2.2.3 and impossible to update due to rendering system is quite different from newer version.

When I create a prefab(in this case it's a save menu window), sometimes errors displayed below occur, and I don't know what to do.

NullReferenceException: Object reference not set to an instance of an object
  at (wrapper stelemref) object:stelemref (object,intptr,object)
  at System.Collections.Generic.List`1[UnityEngine.Transform].Add (UnityEngine.Transform item) [0x00000] in <filename unknown>:0
  at UIPanel.UpdateTransforms () [0x0006d] in C:\Staff\OtherWorks\ReversiQuest\SvnForXboxOne2\Assets\NGUI\Scripts\UI\UIPanel.cs:676
  at UIPanel.LateUpdate () [0x0001f] in C:\Staff\OtherWorks\ReversiQuest\SvnForXboxOne2\Assets\NGUI\Scripts\UI\UIPanel.cs:893
(Filename: C:/Staff/OtherWorks/ReversiQuest/SvnForXboxOne2/Assets/NGUI/Scripts/UI/UIPanel.cs Line: 676)

IndexOutOfRangeException: Array index is out of range.
  at System.Collections.Generic.Dictionary`2+Enumerator[UnityEngine.Transform,UINode].MoveNext () [0x00000] in <filename unknown>:0
  at UIPanel.UpdateTransforms () [0x000a7] in C:\Staff\OtherWorks\ReversiQuest\SvnForXboxOne2\Assets\NGUI\Scripts\UI\UIPanel.cs:665
  at UIPanel.LateUpdate () [0x0001f] in C:\Staff\OtherWorks\ReversiQuest\SvnForXboxOne2\Assets\NGUI\Scripts\UI\UIPanel.cs:893
  at (wrapper managed-to-native) UnityEngine.GameObject:get_layer (UnityEngine.GameObject*)
  at UIWidget.CheckLayer () [0x00000] in C:\Staff\OtherWorks\ReversiQuest\SvnForXboxOne2\Assets\NGUI\Scripts\Internal\UIWidget.cs:221
  at UIWidget.Update () [0x00000] in C:\Staff\OtherWorks\ReversiQuest\SvnForXboxOne2\Assets\NGUI\Scripts\Internal\UIWidget.cs:309

These errors are displayed every frame and fps becomes extremely low.