Search Issue Tracker
Won't Fix
Won't Fix in 2023.2.X
Votes
1
Found in
2020.3.25f1
2021.2.7f1
2022.1.0b2
2023.1.0a1
2023.2.0a1
Issue ID
UUM-3528
Regression
No
On Value Changed event of Scroll Rect is triggered when parent position changes after scrolling
Reproduction steps:
1. Open the user's attached project "ScrollRectBugReport.zip"
2. Open "SampleScene" from the Project window
3. Enter Play mode
4. Scroll the Scroll View, then stop
5. Observe the Console window
Expected result: "Scroll Value changed\!" is only logged while scrolling in step 4
Actual result: "Scroll Value changed\!" is spammed after step 4
Reproducible with: 2019.4.34f1, 2020.3.25f1, 2021.2.7f1, 2022.1.0b2
Notes:
1. Disabling the "Move" Script on the "ScrollParent" GameObject will stop the Console spam, re-enabling the Script will start it again
2. On 2019.4.34f1 and 2020.3.25f1 scrolling to the bottom is necessary to reproduce
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Spring Joint shows only one anchor gizmo in Scene view when "Auto Configure Connected Anchor" is enabled
- Crash on _platform_memmove after entering large value in Graphics settings Preloaded Shaders field
- Disproportionally large impact on CPU frame time when writing to a rendering entity's LocalToWorld
- "Constant Force" Component numeric fields drift out of view while entering a really big value in the Inspector
- Scene view camera speed pop-up appears empty or cut off when Scene view is very narrow
Resolution Note:
We are limited in how much we can fix on uGUI given the priority shift to UI Toolkit. Can you try the workarounds below?
This might be the fix. We are currently m_Content.anchoredPosition != m_PrevPosition which will be modified based on the parent. instead do
if (m_ViewBounds != m_PrevViewBounds || m_ContentBounds != m_PrevContentBounds || (Vector2)m_Content.localPosition != m_PrevPosition)
If that doesnt work try SetContentAnchoredPosition(position); and invoke
Resolution Note (2023.2.X):
We are limited in how much we can fix on uGUI given the priority shift to UI Toolkit. Can you try the workarounds below?
This might be the fix. We are currently m_Content.anchoredPosition != m_PrevPosition which will be modified based on the parent. instead do
if (m_ViewBounds != m_PrevViewBounds || m_ContentBounds != m_PrevContentBounds || (Vector2)m_Content.localPosition != m_PrevPosition)
If that doesnt work try SetContentAnchoredPosition(position); and invoke