Author Topic: Error with Unity 4.6f1 and NGUI 3.7.6  (Read 4433 times)

mimmog

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 32
    • View Profile
Error with Unity 4.6f1 and NGUI 3.7.6
« on: November 08, 2014, 05:43:54 PM »
I have this error when I NOT click play the scene is one background image and three button images

Quote
NullReferenceException: Object reference not set to an instance of an object
UIPanel.get_worldCorners () (at Assets/NGUI/Scripts/UI/UIPanel.cs:623)
UIPanelInspector.OnSceneGUI () (at Assets/NGUI/Scripts/Editor/UIPanelInspector.cs:87)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.SceneView.CallOnSceneGUI () (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/SceneView/SceneView.cs:1659)
UnityEditor.SceneView.HandleSelectionAndOnSceneGUI () (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/SceneView/SceneView.cs:1078)
UnityEditor.SceneView.OnGUI () (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/SceneView/SceneView.cs:991)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Error with Unity 4.6f1 and NGUI 3.7.6
« Reply #1 on: November 09, 2014, 08:55:11 PM »
Line 623 of UIPanel for me is:
  1. float x1 = x0 + size.x;
Are you sure you are up to date?

Also see this: http://www.tasharen.com/forum/index.php?topic=11603.msg53871#msg53871

mimmog

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 32
    • View Profile
Re: Error with Unity 4.6f1 and NGUI 3.7.6
« Reply #2 on: November 10, 2014, 03:06:04 AM »
I'm sorry but the ngui version is 3.7.5 not 3.7.6 have you solved the problem with 3.7.6 version ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Error with Unity 4.6f1 and NGUI 3.7.6
« Reply #3 on: November 10, 2014, 08:31:08 PM »
Yes.