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
- There is no way to adjust the HDR Paper White value of the Unity Editor's interface, making it difficult/uncomfortable for some developers to work on very dark/bright scenes in HDR
- Animator window has a dropdown button that throws “MissingReferenceException” error on a new project when the previous project had a GameObject with an animation
- Animator State name overflows outside the visual box when the State has a long name
- UI Document file remains marked as Dirty after Undoing made changes
- Switching between UI Documents with different Canvas sizes marks the UXML file as dirty
Add comment