EditorFileSystemDirectory¶
继承: Object
类别: 核心
简要说明¶
资源文件系统的目录。
方法¶
find_dir_index ( String name ) const |
|
find_file_index ( String name ) const |
|
get_file_count ( ) const |
|
get_file_import_is_valid ( int idx ) const |
|
get_file_path ( int idx ) const |
|
get_file_script_class_extends ( int idx ) const |
|
get_file_script_class_name ( int idx ) const |
|
get_file_type ( int idx ) const |
|
get_name ( ) |
|
get_parent ( ) |
|
get_path ( ) const |
|
get_subdir ( int idx ) |
|
get_subdir_count ( ) const |
描述¶
目录概念的一个更广泛的、低级的变化。
方法说明¶
返回名为的目录索引 name
或 -1
如果找不到。
返回名为的文件的索引 name
或 -1
如果找不到。
返回索引处的文件名 idx
.
int get_file_count ( ) const
返回此目录中的文件数。
返回 true
如果索引处的文件 idx
正确导入。
返回索引处文件的路径 idx
.
返回位于索引处的文件扩展名 idx
.
String get_name ( )
返回此目录的名称。
EditorFileSystemDirectory get_parent ( )
返回此目录的父目录或 null
如果在目录上调用 res://
或 user://
.
String get_path ( ) const
返回此目录的路径。
EditorFileSystemDirectory get_subdir ( int idx )
返回索引处的子目录 idx
.
int get_subdir_count ( ) const
返回此目录中的子目录数。