Search Issue Tracker
By Design
Votes
0
Found in
2017.4
2018.4
2019.2
2019.2.0f1
2019.3
2020.1
Issue ID
1212274
Regression
No
Updated Material properties are not copied to a new instance when they were changed using Material.Lerp
Reproduction steps:
1. Open attached project "1212274_material_lerp" and "SampleScene"
2. Enter Play Mode
Expected result: "instance", changed from red to blue using Material.Lerp, and "instance2" are both blue
Actual result: "instance2" color is red, while "instance" is blue
Reproducible with: 2017.4.36f1, 2018.4.16f1, 2019.2.19f1, 2019.3.0f5, 2020.1.0a20
Note: "instance2" color is set to the color that "instance" was originally instantiated with.
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
- Tile Palette selected dropdown text does not update when palette is renamed
- ArgumentException thrown and reference to Template gets unset when opening UXML file after editing referenced Template in Play mode
- [iOS][WebGL] Player freezes when multiple properties of a VisualElement are changed at the same time
- Warning 'GetControlID at event ValidateCommand returns a controlID different from the one in the Layout event' is logged when undoing the deletion of an Edited Freeform 2D Light
- ShadowCaster2D breaks on certain Rotation positions when Casting Source is set to PolygonCollider2D
Resolution Note:
Creating an instance is just “copying the serialized material object” and it will not contain anything that is set to the shader. Please use CopyPropertiesFromMaterial for copying one material to another: https://docs.unity3d.com/ScriptReference/Material.CopyPropertiesFromMaterial.html