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

Asset Import Pipeline

-

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

  1. Response avatar

    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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.