Search Issue Tracker
Fixed in 2017.1.X
Votes
0
Found in
5.5.2p2
Issue ID
903466
Regression
Yes
[LineRenderer] LineRenderer auto UV calculation can't do stretched texture tiling (regression)
The new LineRenderer (Unity 5.5 or later) doesn't have functional parity with the old LineRenderer (Unity 5.4 or earlier). In the old LineRenderer the UV coordinates were calculated based on the assumption that the given line point positions were equally spaced. This meant that you could set the X Tiling property for the used Material to be equal to the number of line segments so that the texture applied to the line is tiled, but stretched for each line segment. In the new LineRenderer this behavior cannot be achieved as the UV coordinates are calculated based on the length of the line instead.
To repro:
1) Attached zip "LineRendererRegressionProjects.zip" contains two project folders one for 5.5 and one for 5.4 to demonstrate the regression.
2) Open 5.4 project and view in Main scene that the LineRenderer texture is stretched for each line segment
3) Open 5.5 project and view in Main scene that the LineRenderer texture is stretched equally along the line, based on its length.
4) View attached image "LineRendererRegressionImage.png" for clarification (5.4 on left, 5.5 on right)
Tested in 5.4.5p1 and 5.5.2p2.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Add comment