Skip to content

Force Reserialize Assets Editor Window

Roman Fadeev edited this page Feb 25, 2020 · 2 revisions

Motivation

Unity often changes assets serialization format on Unity version change. This affects development workflow after Unity version change when asset is modified by developer: changes from modification and from format change are presented in the diff. To avoid such mixture, force reserialize assets editor window is created. It uses AssetDatabase.ForceReserializeAssets Unity API to allow force reserializing assets to get changes from format change only.

How to use

Access editor window via Unity toolbar: Window->Pump Editor->Force Reserialize Assets.

  • "Force Reserialize All Assets" button reserializes all assets in the project. As it's possibly time consuming operation, confirmation popup is shown before proceeding.
  • "Force Reserialize Selected Assets" button serializes selected assets. If no assets are selected, warning popup is shown.

Force reserialization of assets is also added to asset context menu shown on left click of the asset. Here options Pump Editor->Force Reserialize and Pump Editor->Force Reserialize All execute serialization of selected assets or all assets correspondingly.

Clone this wiki locally