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
- Unity Cloud icon does not appear next to project and does not connect correctly when the project is created with Cloud but closed right after creation
- ScrollerSlider in the Scroller Control is still using UXMLTraits
- Crash on ExtractHandles when shutting down the Editor in a specific scene while Burst jobs are in progress
- Unity Hub closes with no "Project is currently open" window when selecting an already open project from the Projects list
- The Hub freezes indefinitely when copy/pasting a lot of characters in the “Set project display name” Hub window since it has no character limit
Add comment