MixedRealityToolkit / MixedRealityToolkit-Unity

This repository holds the third generation of the Mixed Reality Toolkit for Unity. The latest version of the MRTK can be found here.
BSD 3-Clause "New" or "Revised" License
398 stars 104 forks source link

[FEATURE REQUEST] Allow VirtualizedScrollRectList to be reused #540

Closed ahmed-shariff closed 10 months ago

ahmed-shariff commented 11 months ago

Problem

Based on my understanding, during runtime, once a VirtualizedScrollRectList is created, it cannot be reset. I would like to be able to reuse the menu for different list of items.

The OnValidate method already seems to do this. A solution could be to make this public method https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/blob/f669f5aef4141ed3f949a2913a40e386c5444b2e/org.mixedrealitytoolkit.uxcore/Experimental/List/VirtualizedScrollRectList.cs#L314-L324

AMollis commented 11 months ago

Hi @ahmed-shariff thank you for your request. This seems like a valid feature worth investigating.