1. At the Hierarchy choose Devices.
2. At the Inspector scroll down to Custom Buttons.
3. Name the button
4. Press Is Toggle and Default On checkboxes
5. At On Toggle On () and On Toggle Off () Press the + sign
6. Drag the object to both toggles.
7. Change the both Toggle Functions to - GameObject>SetActive(bool)
8. Check the checkbox at On Toggle Off ()
9. Test your work.

Did this answer your question?