mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Document non-resource file handling in FileAccess and ResourceLoader
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
A singleton used to load resource files from the filesystem.
|
||||
It uses the many [ResourceFormatLoader] classes registered in the engine (either built-in or from a plugin) to load files into memory and convert them to a format that can be used by the engine.
|
||||
[b]Note:[/b] You have to import the files into the engine first to load them using [method load]. If you want to load [Image]s at run-time, you may use [method Image.load]. If you want to import audio files, you can use the snippet described in [member AudioStreamMP3.data].
|
||||
[b]Note:[/b] Non-resource files such as plain text files cannot be read using [ResourceLoader]. Use [FileAccess] for those files instead, and be aware that non-resource files are not exported by default (see notes in the [FileAccess] class description for instructions on exporting them).
|
||||
</description>
|
||||
<tutorials>
|
||||
<link title="Operating System Testing Demo">https://godotengine.org/asset-library/asset/2789</link>
|
||||
|
||||
Reference in New Issue
Block a user