Search Issue Tracker
By Design
Votes
0
Found in
2022.3.30f1
6000.0.5f1
Issue ID
UUM-73161
Regression
No
“Material 'CopyTo' with Shader 'Test/CopyTo' doesn't have a color property '_Color2'“ error is thrown when using CopyPropertiesFromMaterial with different shaders
Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Assets/Scenes/SampleScene.unity” Scene
3. Select “Sphere” GameObject in the Hierarchy window
4. Double-click on the “CopyTo” material under the Materials section in the Inspector window
5. Observe the Console window
Expected result: No error is thrown
Actual result: “Material 'CopyTo' with Shader 'Test/CopyTo' doesn't have a color property '_Color2'“ error is thrown
Reproducible with: 2022.3.30f1, 6000.0.5f1
Couldn't test with: 2021.3.39f1 (Script can’t be loaded)
Reproducible on: Windows 11
Not reproducible on: No other environment tested
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
- Crash on UnityPlayer!profiling::ProfilerManager::DisposeProfilerRecorder+0xa when Player gets relaunched and exited after running for a long amount of time
- [Input system] When releasing one touch and pressing a second touch during a single frame, the second touch is not translated into UI event line OnPointerDown by the InputSystemUIInputModule
- URP Samples - multiple "Attempting to resolve render surface" and other errors appear when setting Quality pipeline asset
- OnDemandRendering.willCurrentFrameRender returns incorrect values in the Player when UnityEngine.Rendering.OnDemandRendering.renderFrameInterval is greater than 1
- Root motion is not reapplied when transitioning from an animation without root motion to an animation with root motion
Resolution Note:
The user should use https://docs.unity3d.com/2022.3/Documentation/ScriptReference/Material.CopyMatchingPropertiesFromMaterial.html instead which will only copy properties that do match.