Search Issue Tracker
Fixed in 5.2.0
Votes
5
Found in
5.0.0f4
Issue ID
677642
Regression
No
Keywords are not copied by material.CopyPropertiesFromMaterial
How to reproduce:
1. Import attached package into a project
2. Open scene CopyMaterial Example/Copy Material Scene.unity
- Scene contains a simple cube with an attached script and a material assigned to the script
- Script source:
using UnityEngine;
using System.Collections;
public class CopyMaterialTest : MonoBehaviour {
public Material testMaterial;
void Start () {
GetComponent<Renderer>().material.CopyPropertiesFromMaterial(testMaterial);
}
}
3. Play the scene
- Note how the material is applied to the cube
4. Select the cube
5. Expand the Material component of the cube
- Notice how the cube appears to gain extra details that weren't there before, but should have been applied after step 3.
Comments (2)
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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
PazziCZ
Jun 25, 2015 15:45
Fix:
Material newMat = Instantiate(oldMat);
PazziCZ
Jun 25, 2015 15:08
Same thing when create new material from old:
Material newMat = new Material(oldMat);
https://www.youtube.com/watch?v=sRrssiyd5AE