EditorFileSystemDirectory
A directory for the resource filesystem.
A directory for the resource filesystem.
A more generalized, low-level variation of the directory concept.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
EditorFileSystemDirectoryConstructor
public EditorFileSystemDirectory();Methods14
FindDirIndexint
public int FindDirIndex(string name);Returns the index of the directory with name name or -1 if not found.
| Name | Type | Default |
|---|---|---|
name | string | — |
intFindFileIndexint
public int FindFileIndex(string name);Returns the index of the file with name name or -1 if not found.
| Name | Type | Default |
|---|---|---|
name | string | — |
intGetFilestring
public string GetFile(int idx);Returns the name of the file at index idx.
| Name | Type | Default |
|---|---|---|
idx | int | — |
stringGetFileCountint
public int GetFileCount();Returns the number of files in this directory.
intGetFileImportIsValidbool
public bool GetFileImportIsValid(int idx);Returns true if the file at index idx imported properly.
| Name | Type | Default |
|---|---|---|
idx | int | — |
boolGetFilePathstring
public string GetFilePath(int idx);Returns the path to the file at index idx.
| Name | Type | Default |
|---|---|---|
idx | int | — |
stringGetFileScriptClassExtendsstring
public string GetFileScriptClassExtends(int idx);Returns the base class of the script class defined in the file at index idx. If the file doesn't define a script class using the class_name syntax, this will return an empty string.
| Name | Type | Default |
|---|---|---|
idx | int | — |
stringGetFileScriptClassNamestring
public string GetFileScriptClassName(int idx);Returns the name of the script class defined in the file at index idx. If the file doesn't define a script class using the class_name syntax, this will return an empty string.
| Name | Type | Default |
|---|---|---|
idx | int | — |
stringGetFileTypeStringName
public StringName GetFileType(int idx);Returns the resource type of the file at index idx. This returns a string such as "Resource" or "C#", not a file extension such as ".cs".
| Name | Type | Default |
|---|---|---|
idx | int | — |
StringNameGetNamestring
public string GetName();Returns the name of this directory.
stringGetParentEditorFileSystemDirectory
public EditorFileSystemDirectory GetParent();Returns the parent directory for this directory or null if called on a directory at asset:// or user://.
EditorFileSystemDirectoryGetPathstring
public string GetPath();Returns the path to this directory.
stringGetSubdirEditorFileSystemDirectory
public EditorFileSystemDirectory GetSubdir(int idx);Returns the subdirectory at index idx.
| Name | Type | Default |
|---|---|---|
idx | int | — |
EditorFileSystemDirectoryGetSubdirCountint
public int GetSubdirCount();Returns the number of subdirectories in this directory.
int