This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
This line will always spawn the prefab in world space, which will make the scroll items be aligned to world identity rather than the rotation of the scroll list (unless the scroll list's rotation is exactly world's)
This is not noticeable in the example scene because the ScrollRectCurve script is fixing them back to scrollrect rotation
Steps to reproduce:
open the VirtualizedScrollRectList Example scene
remove the ScrollRectCurve script from the Content prefab
rotate the List menu prefab on the y axis
play the scene
note how all the children are misaligned
Expected behaviour:
the VirtualizedScrollRectList script should align the children correctly without the aid of any other scripts, should the user not wish to use them
Thanks for reporting this! We'll be making lots of improvements + changes to VirtulizedScrollRectList over the coming months as we mature our binding strategy.
This issue has been migrated a new MRTK repository, and the status of this issue will now be tracked at the following location:
https://github.com/microsoft/MixedRealityToolkit-Unity/blob/5bf13f11f3d7e285f71360d47fcd64afe8a5f7a4/com.microsoft.mrtk.uxcore/ScrollRect/VirtualizedScrollRectList.cs#L355
This line will always spawn the prefab in world space, which will make the scroll items be aligned to world identity rather than the rotation of the scroll list (unless the scroll list's rotation is exactly world's)
This is not noticeable in the example scene because the
ScrollRectCurve
script is fixing them back to scrollrect rotationSteps to reproduce:
VirtualizedScrollRectList
Example sceneScrollRectCurve
script from the Content prefabList menu
prefab on the y axisExpected behaviour: the
VirtualizedScrollRectList
script should align the children correctly without the aid of any other scripts, should the user not wish to use them