Search Issue Tracker
Fixed
Fixed in 6000.3.0b2, 6000.4.0a1
Votes
0
Found in
6000.3.0b1
Issue ID
UUM-116354
Regression
Yes
Error "InvalidCastException: Specified cast is not valid." is logged and Lightmap Parameters cannot be changed in a Mesh Renderer Component
*Steps to reproduce:*
# Open any Project
# In a Scene's Hierarchy create a Cube Game Object and select it
# In the Inspector, enable "Contribute Global Illumination"
# Open the dropdown menu for "Lightmap Parameters" and select any of the default options and observe the Console
# Try to create a new Parameters Asset then try to switch back to the default Parameters then to the newly created custom Parameters
*Actual results:* Error "InvalidCastException: Specified cast is not valid.
UnityEditor.AssetPopupBackend.AssetPopupMenuCallback (System.Object userData) (at <1d669ed6d2a0471d82e2f635ab61f1fb>:0)
UnityEditor.GenericMenu.CatchMenu (System.Object userData, System.String[] options, System.Int32 selected) (at <1d669ed6d2a0471d82e2f635ab61f1fb>:0)" is logged, the Parameters do not switch, when creating new Parameters they are automatically assigned, but if switching back to default Parameters and then back to the custom Parameters the error is logged again and Parameters are not switched
*Expected results:* Parameters can be switched to the default Preset Parameters or custom Parameters at all times
*Reproducible with versions:* 6000.3.0a5, 6000.3.0b1
*Not reproducible with versions:* 2022.3.66f1, 6000.0.57f1, 6000.1.16f1, 6000.2.3f1, 6000.3.0a4
*Tested on (OS):* Windows 11
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- ComputeBuffer readback fails when Render Graph is enabled
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
Add comment