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)
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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".