Search Issue Tracker
Won't Fix
Votes
0
Found in
2019.4
2019.4.5f1
2020.2
Issue ID
1266641
Regression
No
OnPreprocessMaterialDescription does not update material keywords when using reimport
How to reproduce:
1. Open user's attached "FBXImport.zip" project
2. Open "SampleScene" Scene
3. In the Hierarchy window expand "MultiMaterial_3dsmax_3" and select "StandardMaterial"
4. In the Inspector window expand the Material tab
5. Go to the Project window and in it select "MultiMaterial_3dsmax_3" (mouse left-click)
6. Reimport the selection (mouse right-click > Reimport)
Expected result: Shaders in the Scene view get updated ("StandardMaterial" spheres attain their shine)
Actual result: Shaders in the Scene view do not get updated
Reproducible with: 2019.4.8f1, 2020.1.1f1, 2020.2.0a21
Could not test with: 2018.4.26f1 (removing nonexistent dependencies from "manifest.json" lead to code errors such as "Assets\MaterialDescription.cs(8,49): error CS0246: The type or namespace name 'MaterialDescription' could not be found (are you missing a using directive or an assembly reference?)")
Notes:
- Step 4 updates the Shaders of the "StandardMaterial" in the Scene view
- Shaders can be forced to update after step 5 by selecting the "StandardMaterial" in the Hierarchy window
- "OnPreprocessMaterialDescription" is used in "MaterialDescription.cs" (this class derives from "AssetPostprocessor")
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
- Foldout arrow indent is misaligned in the Inspector when used in Custom Type
- [Android] The Player screen turns black when playing a video under certain conditions
- Search window icons at the bottom are cut off when Search window is resized vertically
- "Try something else?" text label is cut off when searching for a long text in the Search window
- Rendering Debugger window sections do not have a minimum width set when resizing with the slider in the middle of the window
Resolution Note (2021.1.X):
the user script MaterialDescription.cs is not complete. You should also enable _METALLICGLOSSMAP keyword