EditorFileSystem¶
类别: 核心
简要说明¶
资源文件系统,正如编辑器所看到的。
方法¶
get_file_type ( String path ) const |
|
get_filesystem ( ) |
|
get_filesystem_path ( String path ) |
|
get_scanning_progress ( ) const |
|
is_scanning ( ) const |
|
无效 |
scan ( ) |
无效 |
scan_sources ( ) |
无效 |
update_file ( String path ) |
无效 |
信号¶
filesystem_changed ( )
在文件系统更改时发出。
resources_reimported ( PoolStringArray resources )
如果资源重新导入,则已汇款。
resources_reload ( PoolStringArray resources )
sources_changed ( bool exist )
如果任何导入文件的源发生更改,则发出。
描述¶
此对象保存文件系统中所有资源及其类型等的信息。
方法说明¶
获取给定完整路径的文件类型。
EditorFileSystemDirectory get_filesystem ( )
获取根目录对象。
EditorFileSystemDirectory get_filesystem_path ( String path )
将视图返回到文件系统 path
.
float get_scanning_progress ( ) const
如果正在扫描fs,则返回0到1的扫描进度。
bool is_scanning ( ) const
返回 true
正在扫描文件系统的。
void scan ( )
扫描文件系统是否有更改。
void scan_sources ( )
检查任何导入资源的源是否已更改。
void update_file ( String path )
更新文件信息。如果外部程序(不是godot)修改了文件,则调用此函数。
void update_script_classes ( )