Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
EditorFileSystem¶
Sistema de archivos de recursos, como lo ve el editor.
Descripción¶
Este objeto contiene información de todos los recursos del sistema de archivos, sus tipos, etc.
Nota: Esta clase no debe ser instanciada directamente. En su lugar, accede al singleton usando EditorInterface.get_resource_filesystem.
Métodos¶
get_file_type ( String path ) const |
|
get_filesystem ( ) |
|
get_filesystem_path ( String path ) |
|
get_scanning_progress ( ) const |
|
is_scanning ( ) const |
|
void |
scan ( ) |
void |
scan_sources ( ) |
void |
update_file ( String path ) |
void |
Señales¶
filesystem_changed ( )
Emitido si el sistema de archivos cambió.
resources_reimported ( PoolStringArray resources )
Emitted if a resource is reimported.
resources_reload ( PoolStringArray resources )
Emitido si al menos un recurso se recarga cuando el sistema de archivos es escaneado.
sources_changed ( bool exist )
Emitido si la fuente de cualquier archivo importado cambia.
Descripciones de Métodos¶
Returns the resource type of the file, given the full path. This returns a string such as "Resource"
or "GDScript"
, not a file extension such as ".gd"
.
EditorFileSystemDirectory get_filesystem ( )
Obtiene el objeto del directorio raíz.
EditorFileSystemDirectory get_filesystem_path ( String path )
Devuelve una vista en el sistema de archivos en path
.
float get_scanning_progress ( ) const
Devuelve el progreso del escaneo de 0 a 1 si el FS está siendo escaneado.
bool is_scanning ( ) const
Devuelve true
del sistema de archivos está siendo escaneado.
void scan ( )
Escanea el sistema de archivos en busca de cambios.
void scan_sources ( )
Compruebe si ha cambiado la fuente de algún recurso importado.
void update_file ( String path )
Actualizar la información de un archivo. Llámalo si un programa externo (no Godot) modificó el archivo.
void update_script_classes ( )
Escanea los archivos de script y actualiza la lista de nombres de clase personalizados.