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
- Multiple errors are thrown in the console while using perforce when moving an asset using shortcuts
- PlayerPropertiesChanged event fires before Player Properties are applied
- Opening Media Pop-out in “Before You Start” Tutorial throws “Styles” and “Styles_Dark” messages in the Console window
- Play Mode Scenario selection/highlight is too long and out of its bounds when the Play Mode Scenario window is opened after maximizing
- Asset name is not shown in the Undo History window when a sprite is modified
Resolution Note (2021.1.X):
the user script MaterialDescription.cs is not complete. You should also enable _METALLICGLOSSMAP keyword