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
- The GPUResidentDrawerResources script file is missing from the Scriptable Render Pipeline Core package
- Particle size is not correctly reflected in Edit Mode when a particle system is used as a Sub Emitter
- [Usability] No warnings about having sufficient space before generating the Lighting
- "Invalid AABB inAABB" and "Assertion failed on expression: 'awake.loadStarted'" errors are thrown when when instantiating a prefab with InstantiateAsync
- Line Break Position Changes in Traditional Chinese when consecutive punctuation is used
Add comment