Search Issue Tracker
Fixed in 5.5.2
Votes
0
Found in
5.5.0f3
Issue ID
864043
Regression
No
Setting LineRenderer's endColor does not change the last Alpha value if the number of Alpha and Color sliders is different
To reproduce:
1. Open attached project "LineRendererEndColorBug.zip".
2. Play "Scene" scene.
3. Look at line renderers. Transparency looks identical on all line renderers.
4. Stop the scene.
5. In Hierarchy find "LineRenderers" gameObject, and for each child, uncheck "Start Transparent" in component "Change Renderer Colors (Script)".
6. Now play the scene, and see how differently it looks.
Expected result: Line Renderer's "startColor" and "endColor" is set correctly for "Color values", and "Alpha values".
Actual result: If Line Renderer has a different number of Color and Alpha sliders, then "endColor" will not set "Alpha values" to the last Alpha slider in the gradient.
Example:
If there are 2 Color, and 3 Alpha sliders, then endColor will modify 2nd Alpha slider in the LineRenderer's color gradient.
If there are 3 Color, and 2 Alpha sliders, since there's no 3rd Alpha slider, no alpha sliders will be modified.
Reproducible with: 5.5.0b3, 5.5.0p2, 5.6.0b3
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment