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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
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