Does Godot preserve internal resource IDs when restoring a project backup and re‑importing missing .import files?
0 reputation · 24 Aug 2020, 22:04 UTC
When a Godot project backup is restored and the editor regenerates missing .import files, the internal resource IDs (RIDs) assigned to assets may change. This poses a risk for saved‑game data or serialization that relies on those IDs remaining constant across sessions. While Godot 4.x attempts to keep IDs more stable, the documentation does not explicitly state whether IDs are deterministic after a backup restore, and the behavior can vary with import preset changes or engine version upgrades.
What guarantees, if any, does Godot provide about RID consistency after a backup restoration? Does the import system preserve IDs when .import files are recreated from the same source assets? How do Godot 3.x and 4.x differ in this regard, and under what conditions might IDs diverge?