Adding photos to the gallery

Please find 10 of your favorite photos from your photo library to use and add them to a new Project Assets folder named Photos. Follow the following steps to add photos to the gallery:

  1. To create the photos folder, navigate to Assets | Create | Folder and name it Photos.
  2. Import 10 photos by dragging and dropping them from your File Explorer into the Photos folder that you just created (or navigate to Assets | Import New Asset...).
  3. Now, we'll write a script to populate Artworks Images. In Hierarchy, select Artworks. Then, in Inspector, navigate to Add Component | New Script and name it PopulateArtFrames.
  4. Open the new script in MonoDevelop.

    Edit the code for PopulateArtFrames.cs, as follows (I've written the code in more ...

Get Unity Virtual Reality Projects 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.