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
- [Linux] Cannot reorder GameObjects in the Hierarchy when the AI Assistant package is installed
- [iOS] Text Input field stops receiving changes when the "Cancel" button is used on the soft keyboard
- [WebGPU] URP RenderGraph RenderPass doesn't clear textures
- Query Builder items display raw code style names instead of human readable labels in search field
- “+” button does nothing and has no functionality when clicked in Human Template "Bone Template" list
Add comment