Unity-UI-Extensions / com.unity.uiextensions

https://unity-ui-extensions.github.io/
1.19k stars 128 forks source link

BUG: UILineRenderer masking does not work #476

Open blizzard384 opened 2 months ago

blizzard384 commented 2 months ago

Unity UI Extensions Bug Report

Describe the bug

The masking is not working when using the UILineRenderer as a child of scroll view

To Reproduce

  1. Create scroll view
  2. Put UILineRenderer as a child of a content
  3. Scroll the view so that the UILineRenderer is outside of the view

Expected behavior

UILineRenderer is correctly masked outside of the scroll view

Actual behavior

UILineRenderer is displayed outside of the scroll view

Screenshots

image

Your Setup

Additional context

SimonDarksideJ commented 1 month ago

I think this might actually be a limitation of the UI Masking system. I'll investigate, but I suspect it might either need the UI component dumped to a texture, or a custom Masking component to make it work.