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
- [Mobile] Developer Console does not appear when an error is thrown
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
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.