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
- Search: Inspector section icon is less sharp/more pixelated than other editor icons
- Search description string is always truncated
- [VFX] When Grouped Nodes are converted to Subgraph Operator resulting Graph Node is not included in the Group
- Search window icons are less sharp/more pixelated than other editor icons
- The Inspector can be covered when scaling the horizontal separator bar
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.