Search Issue Tracker
By Design
Votes
0
Found in
5.5.1f1
Issue ID
899996
Regression
No
Animated material color always returns default value at runtime
To reproduce:
1. Open project, attached by tester
2. Open scene, if not open
3. Press Play
4. Press X on the keyboard, which prints the material's color to the console
5. Observe color values in console
Expected: getting material's color at runtime while it is being animated should return the color that is currently shown on screen
Actual: getting material's color at runtime while it is being animated returns the default color value (1, 1, 1, 1)
Reproduced in 5.4.5p1, 5.5.0f3, 5.5.1f1, 5.5.3f1, 5.6.0p1, 2017.1.0b1
By design: when using animation with materials it does not animate the material but the material property block attached to the renderer.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- In Deferred rendering path, mixed lights don't render when enabling "Use Rendering Layers" in the Decal renderer feature
- [Windows] Special characters in file names are sorted to the end of the alphabet in the Project window
- Information box icons are not contained within the information box bounds in Render Pipeline Converter window
- Crash on UnityEngine.UI.RawImage:OnPopulateMesh when playing Raw Image Texture animation with Sprite keyframes
- 32bit floating point RenderTexture blending feature is not available for WebGPU
Add comment