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
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
- JsonConvert conversion fails trying to call GetCallbackMethodsForType when [OnDeserialized] is used in a class
- Different text alignment in the column header in Entities "System" window
- Objects with Universal Render Pipeline/Particles/Lit shader are always lit up when changing their Rendering Layer Mask
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