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
- [Linux] Top left corner of the screen is unresponsive when the Editor recompiles
- [Android] [Vulkan] Cubes stuck on the first few frames of rotation and application flickering when an Overlay Camera is added to the Camera Stack with MSAA enabled
- Profiling information icon does not update for Light Mode
- [Linux] Type to select functionality is missing for drop down menus
- TextMeshPro calculates Width Compression incorrectly when using certain values in the WD% field
Add comment