Adding and deleting framed pictures

There's just a couple more features to add to the project. So far, we've been working with only a single picture. We want to add many pictures to decorate the walls! Fortunately, our DefaultPicture object is very self-contained, with its toolbar and menus and all. So one approach is to save the DefaultPicture as a prefab and then instantiate new copies of it for each new image we add to the scene.

The plan is to add Add and Delete buttons to the toolbar. Clicking Add will create a new picture in the scene. Clicking Delete will remove the current picture from the scene.

Let's set that up now.

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.