reckfellENGINE

EditorFileSystemDirectory

A directory for the resource filesystem.

On this page
class EditorFileSystemDirectoryReckfellSharpEditorInherits ReckfellObject

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
# EditorFileSystemDirectory
C#
public EditorFileSystemDirectory();

Methods14

FindDirIndexint
# FindDirIndex
C#
public int FindDirIndex(string name);

Returns the index of the directory with name name or -1 if not found.

Parameters
NameTypeDefault
namestring—
Returns int
FindFileIndexint
# FindFileIndex
C#
public int FindFileIndex(string name);

Returns the index of the file with name name or -1 if not found.

Parameters
NameTypeDefault
namestring—
Returns int
GetFilestring
# GetFile
C#
public string GetFile(int idx);

Returns the name of the file at index idx.

Parameters
NameTypeDefault
idxint—
Returns string
GetFileCountint
# GetFileCount
C#
public int GetFileCount();

Returns the number of files in this directory.

Returns int
GetFileImportIsValidbool
# GetFileImportIsValid
C#
public bool GetFileImportIsValid(int idx);

Returns true if the file at index idx imported properly.

Parameters
NameTypeDefault
idxint—
Returns bool
GetFilePathstring
# GetFilePath
C#
public string GetFilePath(int idx);

Returns the path to the file at index idx.

Parameters
NameTypeDefault
idxint—
Returns string
GetFileScriptClassExtendsstring
# GetFileScriptClassExtends
C#
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.

Parameters
NameTypeDefault
idxint—
Returns string
GetFileScriptClassNamestring
# GetFileScriptClassName
C#
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.

Parameters
NameTypeDefault
idxint—
Returns string
GetFileTypeStringName
# GetFileType
C#
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".

Parameters
NameTypeDefault
idxint—
Returns StringName
GetNamestring
# GetName
C#
public string GetName();

Returns the name of this directory.

Returns string
GetParentEditorFileSystemDirectory
# GetParent
C#
public EditorFileSystemDirectory GetParent();

Returns the parent directory for this directory or null if called on a directory at asset:// or user://.

Returns EditorFileSystemDirectory
GetPathstring
# GetPath
C#
public string GetPath();

Returns the path to this directory.

Returns string
GetSubdirEditorFileSystemDirectory
# GetSubdir
C#
public EditorFileSystemDirectory GetSubdir(int idx);

Returns the subdirectory at index idx.

Parameters
NameTypeDefault
idxint—
Returns EditorFileSystemDirectory
GetSubdirCountint
# GetSubdirCount
C#
public int GetSubdirCount();

Returns the number of subdirectories in this directory.

Returns int
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.