Steps to reproduce:
- Create a new project using Universal 3D template
- In the Project window, right-click > Create > Material
- Select the newly created Material
- In the Inspector, click on the dropdown next to "Shader"
- Click on the "Built-in (Deprecated)" option
- Click on the warning box ("A Scriptable Render Pipeline is active. Built-in shaders are deprecated.")
- Observe the Console
Actual results: "InvalidCastException: Specified cast is not valid." error is thrown with each click
Expected results: No errors
Reproducible with versions: 6000.5.0b12, 6000.6.0a7
Can’t test with versions: 6000.4.10f1 (no deprecation box)
Tested on (OS): Windows 11, macOS 26.5