Search Issue Tracker
Fixed in 5.2.0
Votes
0
Found in
5.2.0a1
Issue ID
701667
Regression
Yes
[Material] Draging material on object throws error
Draging material asset on object in scene view throws null reference exceptions.
1. Open scene "Test".
2. Select material "New Material".
3. Drag material on cube.
4. You should get Error:
"NullReferenceException: Object reference not set to an instance of an object
UnityEditor.SpriteUtility.AddAnimationToGO (UnityEngine.GameObject go, UnityEngine.Sprite[] frames) (at C:/buildslave/unity/build/Editor/Mono/Sprites/SpriteUtility.cs:390)
UnityEditor.SpriteUtility.OnSceneDrag (UnityEditor.SceneView sceneView) (at C:/buildslave/unity/build/Editor/Mono/Sprites/SpriteUtility.cs:77)
UnityEditor.SceneView.CallEditorDragFunctions () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1713)
UnityEditor.SceneView.HandleDragging () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1744)
UnityEditor.SceneView.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1233)
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)"
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- GUI.changed is not set when dragging objects onto the header of a Reorderable List
- Window preview appears on a different monitor when undocking and dragging a window with a high-resolution monitor set up on the right and a low-resolution monitor on the left.
- Probe Volume Baking Set Reference Documentation is missing
- Crash on RendererScene::NotifyInvisible when entering Play mode after undoing a change within the scene with Ctrl+z
- [iOS] Final Image misaligned when using "ScalableBufferManager.ResizeBuffers" to resize
Add comment