Search Issue Tracker
Fixed
Votes
0
Found in
Issue ID
741468
Regression
Yes
[Editor] Dragging any object from Project tab to Scene view causes NullReferenceException error in the console
Steps to reproduce:
1. Open Unity Editor;
2. Create new project and scene;
3. Add some files to project settings (could be either prefabs, models etc);
4. Drag any file that could be placed in SceneView from Project tab to the Scene view;
5. Observe the console.
Actual result:
NullReferenceException: (null)
UnityEditor.HandleUtility.CalcRayPlaceOffset (UnityEngine.Transform[] objects, Vector3 normal) (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/editor/EditorHandlesUtilityBindings.gen.cs:700)
UnityEditor.GameObjectInspector.OnSceneDrag (UnityEditor.SceneView sceneView) (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/GameObjectInspector.cs:770)
UnityEditor.SceneView.CallEditorDragFunctions () (at /Users/builduser/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1790)
UnityEditor.SceneView.HandleDragging () (at /Users/builduser/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1803)
UnityEditor.SceneView.OnGUI () (at /Users/builduser/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1283)
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)
is shown in the console.
See attached actual.png screenshot and gif video.
Possible workaround is to drag object to the Hierarchy tab, in this case the error is not thrown.
Notes:
- Regression introduced in Unity 5.3.0b5;
- Reproduced on both OSX El Capitan 10.11 and Windows 7.
Comments (2)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Physics Used Memory keeps growing when GameObject colliders are enabled and disabled
- Errors are thrown and Inspector's UI element is not drawing when a GameObject with script component using a List<T> attached is selected
- ConfigurableJoint's parameters are not saved in the Prefab after Runtime Prefab baking
- Popup windows spawn on the incorrect monitor when the Editor is placed near the boundary of scaled monitor next to a monitor with different scaling
- Hidden Tabs do not shift into empty space after closing visible Tabs
keenlive
Nov 21, 2015 20:06
NullReferenceException: (null)
UnityEditor.HandleUtility.CalcRayPlaceOffset (UnityEngine.Transform[] objects, Vector3 normal) (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorHandlesUtilityBindings.gen.cs:700)
UnityEditor.GameObjectInspector.OnSceneDrag (UnityEditor.SceneView sceneView) (at C:/buildslave/unity/build/Editor/Mono/Inspector/GameObjectInspector.cs:772)
UnityEditor.SceneView.CallEditorDragFunctions () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1791)
UnityEditor.SceneView.HandleDragging () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1804)
UnityEditor.SceneView.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1284)
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)
keenlive
Nov 21, 2015 20:05
I have the same issue as well in 5.3.0 f1