I’m having trouble scrolling through a Viewport UI-Element I made. Using the old HoloToolKit solutions won’t do it for the new MRTK.
Since I’ve upgraded to MRTK v2 it doesn’t work. I am able to use the UI-Buttons from Unity. But when I try to scroll it behaves elastic and always jumps back to the top.
Tried also the MRTK Scrolling example and adding the necessary scripts, but still couldn’t get it running.
Does anybody know what changes I have to make or which scripts to attach to make it work with MRTK v2?
Could it be that I should redesign the canvas not using UI-Buttons, because they might not be supported yet? :S
I am using Unity 2019.2.12f and imported the MRTK v2.2.0
An example of how to use the Unity UI Scroll View can be found on the Hand Interaction Examples scene . The content inside this Unity UI example can be scrolled both horizontal and vertically and should work for both Hololens 1 or Hololens 2.
Im facing one issue with scrollingobjectcollection, when the gameobjects are added dynamically to the gridobject collection present in scrollingobject collection, the game objects contains textmeshpro text and inputfields, when the screen is rotated or titled bit tilted then the unity elements can be seen outside of the visible area even though the mask is enabled, but mrtk buttons are masked. as shown in below figure.