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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Add comment