Adding a scroll view

Some of the instructions may have relatively long body text, and now, with the addition of image or video graphics, it becomes obvious that not all our content may fit on the screen. When you try the app in landscape orientations, it's even more obvious. We need to scroll the content when it overflows the panel.

In the Unity UI, scrolling is implemented using a special scrolling panel:

  1. Under Main Canvas, select UI | Scroll View and name it Content Scroll View.
  2. Set its Anchor Presets to Stretch/Stretch, and Alt+click on the same to reset its position.
  3. Make room for the nav bar by setting Top to 50.
  4. Uncheck Horizontal (keep Vertical) scrolling.
  5. Set its Source Image to none and Color to opaque white (#FFFFFFFF).

The other ...

Get Augmented Reality for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.