Search Unity

iOS and Scrollview

Discussion in 'UGUI & TextMesh Pro' started by Alex_Gustav, Nov 22, 2018.

  1. Alex_Gustav

    Alex_Gustav

    Joined:
    Nov 12, 2018
    Posts:
    5
    Hello !

    I have a scroll view in my project on iOS which work fine in my editor but not in the build. The content of the viewport doesn't hide when I scroll down :(

    Do you have some idea to resolve my problem ?
    I saw this post : https://forum.unity.com/threads/unity-4-6-mask-not-working-in-ios.269390/
    but I cannot find the option "Use 24-bit Depth Buffer".

    Thank you in advance !
     
    tonythedad likes this.
  2. Alex_Gustav

    Alex_Gustav

    Joined:
    Nov 12, 2018
    Posts:
    5
    I find the solution :)
    In project setting >> Player >> resolution and Presentation >> uncheck the option "Disable Depth and Stencil".
     
    tonythedad and dpharaoh like this.
  3. dpharaoh

    dpharaoh

    Joined:
    Oct 23, 2012
    Posts:
    10
    Thank you so much! This was an aggravating issue!
     
  4. anuj_unity648

    anuj_unity648

    Joined:
    Sep 16, 2019
    Posts:
    1
    its unchecked in my case but still i am having same issue
     
  5. hlorenzo93

    hlorenzo93

    Joined:
    Apr 20, 2016
    Posts:
    4
    I have this same error with iOS. Someone has another solution besides unchecking the option Disable Depth and Stencil?
     
  6. triple_why

    triple_why

    Joined:
    Jun 9, 2018
    Posts:
    47
    Using RectMask2D component instead of the Mask component has solved this issue for me. According to documentation, RectMask2D has below limitations and advantages:

    The limitations of RectMask2D control are:
    * It only works in 2D space
    * It will not properly mask elements that are not coplanar

    The advantages of RectMask2D are:
    * It does not use the stencil buffer
    * No extra draw calls
    * No material changes
    * Fast performance
     
    CodeRonnie and tonythedad like this.