Search Issue Tracker

Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.

Postponed

Votes

0

Found in

2019.4

2020.3

2021.1

2021.2

2021.2.0b11

2022.1

Issue ID

1362750

Regression

No

Prefab preview in the Project window does not change after changing the material of the Prefab

Asset - Database

-

Reproduction steps:
1. Create a new project
2. Create a Cube in Scene
3. Drag the Cube to the Project window to make a prefab
4. Create a new Material with a different color
5. In the project window assign that Material to the Cube prefab by dragging the material on top of the prefab

Expected result: the icon in the Project window changes to represent the new Material assigned (same view as pressing on the prefab and inspecting the preview in the Inspector window)
Actual result: the icon remains the same until the scene is saved or the editor is restarted. After that, any material assignments make the icon change instantly.

Reproducible with: 2020.3.18f1, 2021.1.20f1, 2021.2.0b11, 2022.1.0a7
Partly reproducible with: 2019.4.30f1 - the icon updates when selecting the asset, however, does not update after dragging and dropping the material

Note: On 2020.3.18f1, 2021.1.20f1, the icon does not change even after restarting the editor or saving the Scene

  1. Resolution Note:

    This is a change in behavior that was introduced somewhere around 2020.2/2021.1. Now prefab previews read Materials from disc, and not use the in-memory changes.

    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).
    In previous versions to get an updated preview it was enough to "Reimport" the asset, but that could lead to incorrect previews sometimes. 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.

    we realize that the new behavior is confusing, that is why we added it to our backlog and hopefully will fix it later

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.