Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clearing VirtualizedScrollRectList doesn't always work. #11377

Closed
Magiel1975 opened this issue Jan 16, 2023 · 1 comment
Closed

Clearing VirtualizedScrollRectList doesn't always work. #11377

Magiel1975 opened this issue Jan 16, 2023 · 1 comment
Labels
Bug Data Binding / Virtualization Issues related to data binding or list virtualization IssueMigrated MRTK3

Comments

@Magiel1975
Copy link

Magiel1975 commented Jan 16, 2023

This issue has been migrated a new MRTK repository, and the status of this issue will now be tracked at the following location:


Overview

I wasn't able to completely clear the list every time. Perhaps I need more info on how to properly use the OnInvisible Action.
My workaround was to add
public void ResetList()
{
SetItemCount(0);
OnValidate();
}
to a copy of the VirtualizedScrollRectList class

Expected behavior

When clearing the list with SetItemCount(0), all items should be removed every time SetItemCount(0) is used.

Actual behavior

First time the items are removed, but the second time the items remain visible in the list and ItemCount remains > 0.
The new items will appear on the same position as the items still in the list, showing items through each other.

Steps to reproduce

  1. Add Items to the List.
  2. SetItemCount(0)
  3. Add new Items to the List.
  4. SetItemCount(0)

Unity editor version

2021.3.16f1

Mixed Reality Toolkit release version

MRTK3

@github-actions github-actions bot added the MRTK3 label Jan 16, 2023
@Magiel1975 Magiel1975 changed the title Clear VirtualizedScrollRectList Clearing VirtualizedScrollRectList doesn't always work. Jan 16, 2023
@Zee2
Copy link
Contributor

Zee2 commented Jan 18, 2023

@maluoi ? 😉

@AMollis AMollis added Bug Data Binding / Virtualization Issues related to data binding or list virtualization labels Feb 24, 2023
@AMollis AMollis assigned AMollis and srinjoym and unassigned AMollis Mar 3, 2023
@AMollis AMollis added this to the MRTK v3.x future milestone Mar 7, 2023
@IssueSyncBot IssueSyncBot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Data Binding / Virtualization Issues related to data binding or list virtualization IssueMigrated MRTK3
Projects
None yet
Development

No branches or pull requests

5 participants