summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-07-08 11:48:11 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-07-08 11:48:11 +0200
commite1a145bb3c0128a52c61104131b2f240142b39c5 (patch)
treeffa86d1700c7316c60425591e1c2f3645ab7fb13
parent42e5b3ac2da07d2105c775977b39e6949c723ded (diff)
parent9d18983cdeac895f88636d20da2c1bb81fec7ff8 (diff)
downloadredot-engine-e1a145bb3c0128a52c61104131b2f240142b39c5.tar.gz
Merge pull request #91300 from jsjtxietian/project-binary-doc
Mention ProjectSettings won't be affected by `convert_text_resources_to_binary`
-rw-r--r--doc/classes/ProjectSettings.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/classes/ProjectSettings.xml b/doc/classes/ProjectSettings.xml
index 037f2f3811..b0f421e932 100644
--- a/doc/classes/ProjectSettings.xml
+++ b/doc/classes/ProjectSettings.xml
@@ -934,8 +934,9 @@
Changing this value allows setting up a multi-project scenario where there are multiple [code].csproj[/code]. Keep in mind that the Godot project is considered one of the C# projects in the workspace and it's root directory should contain the [code]project.godot[/code] and [code].csproj[/code] next to each other.
</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] 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].
+ If [code]true[/code], text resource ([code]tres[/code]) and text scene ([code]tscn[/code]) files are converted to their corresponding binary format on export. This decreases file sizes and speeds up loading slightly.
+ [b]Note:[/b] Because a resource's file extension may change in an exported project, it is heavily recommended to use [method @GDScript.load] or [ResourceLoader] instead of [FileAccess] to load resources dynamically.
+ [b]Note:[/b] The project settings file ([code]project.godot[/code]) will always be converted to binary on export, regardless of this setting.
</member>
<member name="editor/import/atlas_max_width" type="int" setter="" getter="" default="2048">
The maximum width to use when importing textures as an atlas. The value will be rounded to the nearest power of two when used. Use this to prevent imported textures from growing too large in the other direction.