When the user clicks a picture, they activate it for editing. When the user clicks the Done button, it stops editing. Let's wire this up:
- Add the PictureAction component to the FramedImage object in DefaultPicture.
- Set its Command to EDIT.
- Add the PictureAction component to the DoneButton object in the Toolbar.
- Set its Command to DONE.
- Add a collider which the FrameImage needs to receive events from InputManager as shown ahead:
- When FramedImage is selected, Add Component then Box Collider.
- Set the Center to (0, 0, 0.05).
- Set the Size to (1, 1, 0.1).
- Save your work and press Play. When you click the Done button, the toolbar should be deactivated and disappear. When you click the picture, the toolbar reappears. The scene ...