Author Topic: NGUI 3.0 UIPanel Bug  (Read 2689 times)

yamazakida

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
NGUI 3.0 UIPanel Bug
« on: October 14, 2013, 11:03:43 PM »
(Sorry. I can't English. use English a little bit.)

I have null reference bug at NGUI 3.0.2


   public void Refresh ()
   {
      mFullRebuild = true;
      list[0].LateUpdate();    <-- bug
   }


My Unity3D 4.2.1 Error Message :

NullReferenceException: Object reference not set to an instance of an object
UIPanel.Refresh () (at Assets/NGUI/Scripts/UI/UIPanel.cs:663)
UITexture.set_mainTexture (UnityEngine.Texture value) (at Assets/NGUI/Scripts/UI/UITexture.cs:164)
UITextureStrategy.ChangeTexture (System.String path) (at Assets/Contents/Scripts/10-BattleScene/UITextureStrategy.cs:60)
StrategyCardCenter.SetStrategyCard (Int32 index, System.String filename) (at Assets/Contents/Scripts/StrategyCardCenter.cs:25)
BattleController.Awake () (at Assets/Contents/Scripts/10-BattleScene/BattleController.cs:44)



ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 3.0 UIPanel Bug
« Reply #1 on: October 16, 2013, 02:34:53 AM »
Thanks, I will add a null check.