Search Issue Tracker
By Design
Votes
0
Found in
2020.2.7f1
2021.1.0b10
2021.1.23f1
2021.2.0a9
2022.1
Issue ID
1373197
Regression
Yes
Material properties being reverted upon script recompilation and reapplied when Material is expanded in Inspector
How to reproduce:
1. Open the user attached "Epitaph.zip" project
2. Open the "_ManagerScene" Scene from the "__Scenes" folder
3. Open the "PrototypeAndTesting" folder
4. Drag and drop the "_TestScene" Scene into the Hierarchy
5. In the Hierarchy Search bar write "Something"
6. Select the GamObject "SomethingIsWrongWithThisSphere"
7. In the Inspector, open the drop-down tab of the Material Component
Expected result: The selected GameObject and its outlines are glowing blue
Actual result: The orb is either just black in color or has only a blue wire mesh on it
Reproducible with: 2020.2.7f1, 2020.3.23f1, 2021.1.0b10, 2021.1.27f1, 2021.2.0a9, 2021.2.0b17, 2022.1.0a13
Not reproducible: 2019.4.32f1, 2020.2.6f1, 2021.1.0b9, 2021.2.0a8
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (2022.1.X):
The issue was a simple but easy to miss discrepancy in the shader. The shader declares properties for blend mode, zwrite etc... as something like:
[HideInInspector] __SrcBlend("__src", Float) = 1.0
[HideInInspector] __DstBlend("__dst", Float) = 0.0
and then uses them as:
Blend[_SrcBlend][_DstBlend]
Note: The property has two "_" while the used value has only one. To fix simply remove the extra underscore from the properties.