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
- [VFX Graph] ArcTorus Transform changes in blackboard not reflected in Graph
- Text deletion works incorrectly in an input field when the Chinese language is used and the "Event System" Component is turned off
- Typed text doesn't appear in an input field when the Chinese language is used and the "Event System" Component is turned off
- Script associated with "GlobalVolumeFeature" is missing when inspecting "Mobile Renderer" Asset
- Clearable "RenderingCommandBuffer" errors are thrown in the Console when creating project using Universal 3D Template
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.