Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: mimmog on November 08, 2014, 05:43:54 PM

Title: Error with Unity 4.6f1 and NGUI 3.7.6
Post by: mimmog 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
Title: Re: Error with Unity 4.6f1 and NGUI 3.7.6
Post by: ArenMook 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
Title: Re: Error with Unity 4.6f1 and NGUI 3.7.6
Post by: mimmog 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 ?
Title: Re: Error with Unity 4.6f1 and NGUI 3.7.6
Post by: ArenMook on November 10, 2014, 08:31:08 PM
Yes.