Skip to content

Added breaking change note for @export_file behavior in 4.4 #11075

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Ayush41
Copy link

@Ayush41 Ayush41 commented Jul 2, 2025

This PR updates the "Upgrading to Godot 4.4" documentation to include a breaking change notice for the @export_file annotation.

As of Godot 4.4, setting a value via the Inspector stores it as a uid:// reference instead of the familiar res:// path. This causes mixed path formats and may break assumptions in GDScript or serialized .tscn/.tres files.

Based on issue #11065

Details

  • In 4.4, @export_file behavior changed, and there's no built-in way to retain res:// paths from the Inspector.
  • Users must manually edit .tscn or .tres files to preserve the old path style.
  • In 4.5, a new annotation @export_file_path was introduced to restore the original behavior explicitly.

This documentation update helps users understand:

  • Why their exported paths changed.
  • How to work around it in 4.4.
  • What to use in 4.5+ to restore the previous behavior.

References

Let me know if this needs formatting changes or should be placed in a different section.

@Calinou Calinou added enhancement area:manual Issues and PRs related to the Manual/Tutorials section of the documentation cherrypick:4.4 labels Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:manual Issues and PRs related to the Manual/Tutorials section of the documentation cherrypick:4.4 enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"addons" folder should be renamed to "plugins"
2 participants