Search Issue Tracker
Fixed in 2020.1.X
Votes
0
Found in
2019.2.0a7
2019.3.0a1
2019.3.0b4
2020.1.0a1
Issue ID
1184820
Regression
Yes
[Graphics General] DivideByZeroException error is thrown on enabling "Animate Cross-Fading" in LOD Group
DivideByZeroException error is thrown on enabling "Animate Cross-Fading" in LOD Group
Steps to repro:
1. Create a new project.
2. GameObject > 3D Object > Cube > Add LOD Group Component.
3. Change Fade Mode to CrossFade.
4. Change the LOD Percentage scale.
5. Enable Animate Cross-Fading checkbox.
Actual Result:
DivideByZeroException error is thrown in the console.
Expected Result:
No error in the console.
Reproducible in:
2020.1.0a6, 2020.1.0a4, 2019.3.0b4, 2019.2.0a7.
Working Fine in:
2019.2.0a6.
Environment:
Windows & Mac 10.14.
Stack trace:
DivideByZeroException: Attempted to divide by zero.
UnityEditor.LODGroupEditor.DrawRenderersInfo (System.Single availableWidth) (at <2c7108252b3f412abf2ec8c94fb7c234>:0)
UnityEditor.LODGroupEditor.OnInspectorGUI () (at <2c7108252b3f412abf2ec8c94fb7c234>:0)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass53_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <2c7108252b3f412abf2ec8c94fb7c234>:0)
UnityEditor.UIElements.Tooltip:SetTooltip(Single, Single)
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
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
krisventure
Jul 13, 2020 14:08
This bug is also present still in Unity 2020.1.0b15.4110 (the latest available beta version).
krisventure
Jul 13, 2020 06:02
This bug is still present in 2019.4.3f1 LTS, along with an unreliable LOD group behaviour such as inconsistent switching between LODs, eg. LOD0, LOD1 and LOD2 all appear correctly at the correct distances when in Editor's Scene view but only LOD0 and LOD2 appear correctly when in PlayMode, with LOD1 getting culled. Also inconsistent results when pressing "recalculate bounds".