Search Issue Tracker
Fixed in 2021.2.X
Votes
0
Found in
2020.2.0a18
2020.2.0b7
Issue ID
1284853
Regression
Yes
Color of the Prefab preview icon is not updated when color of the Material is changed and Prefab is reimported
How to reproduce:
1. Open attached "case_1284853" and SampleScene scene
2. In the project window, select the Material
3. In the Inspector, change the color of the Material to blue(or any other color)
4. In the project window, Right-click on Prefab and select Reimport
5. Observe the color of the Prefab preview icon
Expected result: Color of the Prefab preview icon has the same color as assigned Material
Actual result: Color of the Prefab preview icon is not updated
Reproducible with: 2020.2.0a18, 2020.2.0b8
Not reproducible with: 2018.4.28f1, 2019.4.13f1, 2020.1.10f1, 2020.2.0a17
Notes: Color of the Prefab preview icon is updated after Reimporting All assets or restarting the editor
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Shader Graph Category dropdown cannot be expanded/collapsed when clicking on the text
- Different text alignment in the column header in Entities "System" window
- Objects with Universal Render Pipeline/Particles/Lit shader are always lit up when changing their Rendering Layer Mask
- PolySpatial “Trying to set shader on a Material Variant.” error is printed in the console when entering Play Mode
- Error “Shader error in 'YSCloudCover': call to 'tex3D' is ambiguous at Assets/YSCloudCoverText.shader(606) (on d3d11)“ is present when compiling tex3D shader with DXC
Resolution Note (fix version 2021.2):
So this is change in behavior!
When user changes color of the Material - that is in-memory change and it is not written to disc immediately. To write changes to disc user have to press menu File->Save Project (was always like that).
Previously to get an updated preview it was enough to "Reimport" the asset, but that was a bug. The new behavior is that user changes the Material, then press menu File->Save Project and at this point gets updated preview for the Prefab using that Material.