Skip to content

Moving or renaming scenes in the editor or changing properties in custom resources causes scene corruption #84981

@badihaki

Description

@badihaki

Godot version

4.2.beta4

System information

Windows 11, AMD Ryzen 5 3600, RTX 2060

Issue description

The Godot engine will lose references to scenes UID cache, causing scenes to register as corrupted. Animations will still work and overall functionality will be retained, but the user loses the ability to open the corrupted scenes. The console will show the below error code. Because scene functionality will be preserved, I believe this has to do with how Godot handles the UID caching of scenes with custom resources

Screenshot 2023-11-06 003745

Steps to reproduce

This can happen when removing/renaming files whether inside or outside the Godot editor (more common outside the editor). It can also happen if you change, rename or delete properties from custom resources.

  • Create a custom resource, add some properties
  • Create a script that exports a variable of type custom resource
  • Create a scene that uses that script. Assign an instance of the custom resource to the script
  • Delete a property from custom resource script
  • Move the scene in either the Godot editor or Explorer
  • OR -
  • Save the script, not the scene

Minimal reproduction project

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions