1
\$\begingroup\$

So I've built my scroll rect, like this reference tells me to do : http://docs.unity3d.com/Manual/script-ScrollRect.html

  • -> Scroll View (Rect Transform with scroll rect attached)
  • ---> Viewport (Image + Mask attached)
  • -----> Content (Image attached)

enter image description here

In scene view it looks like I want it to look like, but in play mode it looks like this, which is the correct shape, but obviously not the correct content :

enter image description here

Update : My Canvas

enter image description here

Update : The Image is getting displayed normally, when I disable the mask.

Update : The source of this problem seems to lie in Vuforia (Image/Object Tracking library) since Vuforia appends a ClippingMask to the cameras

\$\endgroup\$
  • \$\begingroup\$ when the play mode is up, in the scene view where does lie your content? chances are that it lies outside the mask due to positioning the scrollable content \$\endgroup\$ – Leggy7 May 23 '16 at 12:46
  • \$\begingroup\$ I checked that in the scene view and it lies still inside, but I noticed while debugging, that the same happens without the scroll rect stuff, so just the mask and it's content. \$\endgroup\$ – TobiasW May 23 '16 at 12:52
  • \$\begingroup\$ Could that be a problem with 'world space' canvas? \$\endgroup\$ – TobiasW May 23 '16 at 12:54
  • \$\begingroup\$ could you post a screen of the canvas? \$\endgroup\$ – Leggy7 May 23 '16 at 13:21
  • \$\begingroup\$ should this be in world space? check for coordinates of all the objects to see if they should be visible by the camera \$\endgroup\$ – Leggy7 May 23 '16 at 14:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.