Search Issue Tracker
Won't Fix
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
- Search field in UI Builder's Library has no character limit
- Changing the value in UI Builder by dragging increases it by a few thousand points when reaching the borders of the screen
- ARM64 architecture DLL incorrectly copied instead of x64 when building for Windows x64
- Crash on TypeTreeIterator::GetNode when opening a specific folder
- Crash on WriteSerializedAssetsV2 when (re)entering the Play Mode in a specific project when IEnumerator Start() is used
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