-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Mention ProjectSettings won't be affected by convert_text_resources_to_binary
#91300
Conversation
doc/classes/ProjectSettings.xml
Outdated
@@ -917,6 +917,7 @@ | |||
</member> | |||
<member name="editor/export/convert_text_resources_to_binary" type="bool" setter="" getter="" default="true"> | |||
If [code]true[/code], text resources are converted to a binary format on export. This decreases file sizes and speeds up loading slightly. | |||
[b]Note:[/b] Project Settings are not a resource so "project.godot" will always be converted to "project.binary" on export. | |||
[b]Note:[/b] If [member editor/export/convert_text_resources_to_binary] is [code]true[/code], [method @GDScript.load] will not be able to return the converted files in an exported project. Some file paths within the exported PCK will also change, such as [code]project.godot[/code] becoming [code]project.binary[/code]. If you rely on run-time loading of files present within the PCK, set [member editor/export/convert_text_resources_to_binary] to [code]false[/code]. |
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.
This needs to be changed to some useful example, it now contradicts what it just said above
However a file like foo.tscn
isn't saved as foo.scn
but instead export-{md5}-foo.scn
etc. so unsure how to explain it here
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 think the converted name (export-{md5}-foo.scn
) is an implementation detail, no?
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.
Agreed, so let's just mention it like "it will turn tscn
to scn
and tres
to res
" and perhaps mention something about how you can't open these with FileAccess
, as per:
And so on, unsure exactly where to refer to, so making a note about not being able to open them directly, and to use ResourceLoader
instead generally
69b6011
to
b0c43a5
Compare
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.
Doing this makes sense but I'm not too fond of the wording.
I'm aware the following would practically turn this PR into my own but-
b0c43a5
to
9d18983
Compare
Thanks! |
See #90999 (comment)
Fixes #90981