Search Issue Tracker

Duplicate

Votes

0

Found in

2018.1.0b6

2018.1.0b10

Issue ID

1011016

Regression

Yes

[Editor] Inspector window interface disappears when resetting any component attached to a gameobject.

Inspector Framework

-

Game object's components disappear completely/partially from the inspector on changing the class name of any script attached to it and then re-setting any component of the game object.

Steps to repro:

1. Open a new project > Create Cube.
2. Create a new C# script with the name "Test" and attached to the Cube.
3. Open Test.cs in Visual studio and change its class name to "Test123" > Save it.
(Don't change the Script filename attached to the cube).
4. Select Cube > In Transform/Any component click on cogwheel > Select Reset.

Observe the Inspector window,

Reproducible on:
2018.1.0b10, 2018.1.0b9, 2018.1.0b8, 2018.1.0b7, 2018.1.0b6.

Working Fine on:
2018.1.0b5, 2018.1.0b1, 2017.3.f3.

Environment:
Occurring on Windows 10, Windows 7, Mac 10.13 & Mac 10.12.

Frequency:
Always.

Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor[] editors, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1114)
UnityEditor.InspectorWindow.DrawEditors (UnityEditor.Editor[] editors) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1073)
UnityEditor.InspectorWindow.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:413)
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/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/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:291)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:284)
UnityEditor.HostView.InvokeOnGUI (Rect onGUIPosition) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:251)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.