autoRevertUnchangedFiles
Automatically reverts files that were checked out during asset import but have no actual content changes.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Property
- Namespace: UnityEditor
- Assembly: UnityEditor
public static bool autoRevertUnchangedFiles { get; set; }
Remarks
When enabled, Unity defers reverting until the asset database postprocess callback after the import cycle completes. This keeps the pending changelist free of incidental import-time checkouts. It relies on the version control provider's server-side content hash verification (where supported, like in Perforce), ensuring that manually checked-out files with real edits are preserved.