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
- Crash on ParticleSystemTrailGeometryJob::RenderJobCommon when changing trail Mode change with a large particle count
- Mouse cursor does not revert to the default mouse cursor when pressing the "Add column" button in the Search window
- ArgumentException is thrown and textures become unreadable when AssetBundle.Unload(false) is called
- URP Tab Reset Menu Button Is Invisible in Light Mode
- Editor crashes on "(Unity) WriteObjectToVector" when entering into the Play Mode
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