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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note (2021.1.X):
the user script MaterialDescription.cs is not complete. You should also enable _METALLICGLOSSMAP keyword