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
- The text font falls back on a different font depending on the fallback font used
- Template is opened in Isolation when opening it in Context and users Save the UI Document when prompted to do so in UI Builder
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
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.