autoRevertUnchangedFiles
Automatically reverts files that were checked out during asset import but have no actual content changes.
阅读时间1 分钟最后更新于 1 个月前
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.