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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.12.36.30