-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add behavior change note for @export_file annotation in Godot 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
base: master
Are you sure you want to change the base?
Add behavior change note for @export_file annotation in Godot 4.4 #11075
Conversation
Co-authored-by: A Thousand Ships <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would list this as a behavior change in the Core section rather than a breaking change. While it may break things in your project, it won't cause a project with formerly valid API usage to be invalid (this is generally what's understood as a breaking change).
@Calinou Just checking in, looking to update or close the PR if it's no longer relevant. Let me know if any changes are needed! :) |
@Calinou @skyace65 @AThousandShips I've made the requested changes. Let me know if anything else is needed. Looking forward to the merge :) |
@skyace65 @AThousandShips @Calinou Done Fixing the typo and confirmed everything looks good now to be merged! |
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 familiarres://
path. This causes mixed path formats and may break assumptions in GDScript or serialized.tscn
/.tres
files.Based on issue #11065
Details
@export_file
behavior changed, and there's no built-in way to retainres://
paths from the Inspector..tscn
or.tres
files to preserve the old path style.@export_file_path
was introduced to restore the original behavior explicitly.This documentation update helps users understand:
References
@export_file_path
to export raw paths (no UID) godot#105414Let me know if this needs formatting changes or should be placed in a different section.