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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- Crash with “Fatal Error! The file ‘MemoryStream’ is corrupted!” when adding a large number in Font Character Rects Size field
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