Documentation

Page contents

Updated

Generate PDF from page.

Back up component values

Description

Allow create component back ups and restore this back ups saved in the project. Works in “Play” and “Edit” mode.

Reference

  • Backups – Dropdown menu with all available backups.
  • Backup – Create a back up of the component.
  • Restore – Replace the current component values for the values saved in the selected back up from dropdown menu.
  • Remove – Delete the selected backup from the dropdown menu.

Use

The parameter of this method is the type of the target script to back up and the “SerializedObject”.

CGFEditorUtilities.BackUpComponentValues<SampleScript>(serializedObject)