You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have text in a scroll view that is masked so the user can scroll to read. In unity play mode, it works as expected. when deployed on my hololens 2 with Depth Submission Mode set to 16 bit, the text does not appear masked and can be seen overflowing. when deployed with depth of 24 bit it works as expected. (correct me if this is the proper way to deploy but i get the "depth should be set to 16 bit" in the project validation thing)
Steps to reproduce the behavior:
Make a scene with the Unity UI scroll view.
Add text to the scroll viewthat overflows the view port.
Deploy to Hololens 2 with 16 bit depth submission mode and see overflowing text.
Expected behavior
Proper content masking with 16 bit depth submission mode.
Screenshots
When trying to screenshot, the scroll view looks fine. However in person, on the hololens2, the text is overflowing
@h421qqq , if you are using standard UGUI elements, you'll have to use 24 bit depth for the clipping to work. The UGUI materials rely on the stencil buffer to clip UGUI elements. The stencil buffer is only available when the depth submission mode is set to 24-bit. To properly render UGUI using the Unity Scroller, please make sure to configure Depth Submission Mode to be 24-bit, under Project Settings > XR Plug-In Management > OpenXR.
If you only need to clip objects in 2D, you can use this built-in UGUI component: RectMask2D | Unity UI | 1.0.0 (unity3d.com) - it doesn't use the stencil buffer akin to how the VirtualizedScrollRectList sample scene works with Graphics Tools components.
I recommend taking a look at our VirtualizedScrollRectList scene, for a sample of how-to setup a scroller with MRTK UI elements (using MRTK Graphic Tool materials) that works with 16 bit depth
This issue has been migrated a new MRTK repository, and the status of this issue will now be tracked at the following location:
Describe the bug
I have text in a scroll view that is masked so the user can scroll to read. In unity play mode, it works as expected. when deployed on my hololens 2 with Depth Submission Mode set to 16 bit, the text does not appear masked and can be seen overflowing. when deployed with depth of 24 bit it works as expected. (correct me if this is the proper way to deploy but i get the "depth should be set to 16 bit" in the project validation thing)
Steps to reproduce the behavior:
Expected behavior
Proper content masking with 16 bit depth submission mode.
Screenshots
When trying to screenshot, the scroll view looks fine. However in person, on the hololens2, the text is overflowing
Your setup
Target platform
The text was updated successfully, but these errors were encountered: