reckfellENGINE

EditorPaths

Editor-only singleton that returns paths to various OS-specific data folders and files.

On this page
class EditorPathsReckfellSharpEditorInherits ReckfellObject

Editor-only singleton that returns paths to various OS-specific data folders and files.

This editor-only singleton returns OS-specific paths to various data folders and files. It can be used in editor plugins to ensure files are saved in the correct location on each operating system. Note: This singleton is not accessible in exported projects. Attempting to access it in an exported project will result in a script error as the singleton won't be declared. To prevent script errors in exported projects, use Engine.HasSingleton to check whether the singleton is available before using it. Note: On the Linux/BSD platform, Reckfell complies with the XDG Base Directory Specification. You can override environment variables following the specification to change the editor and project data paths.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

EditorPathsConstructor
# EditorPaths
C#
public EditorPaths();

Methods6

GetCacheDirstring
# GetCacheDir
C#
public string GetCacheDir();

Returns the absolute path to the user's cache folder. This folder should be used for temporary data that can be removed safely whenever the editor is closed (such as generated resource thumbnails). Default paths per platform:

Text
- Windows: %LOCALAPPDATA%\Reckfell\
- macOS: ~/Library/Caches/Reckfell/
- Linux: ~/.cache/reckfell/
Returns string
GetConfigDirstring
# GetConfigDir
C#
public string GetConfigDir();

Returns the absolute path to the user's configuration folder. This folder should be used for persistent user configuration files. Default paths per platform:

Text
- Windows: %APPDATA%\Reckfell\                    (same as `get_data_dir()`)
- macOS: ~/Library/Application Support/Reckfell/  (same as `get_data_dir()`)
- Linux: ~/.config/reckfell/
Returns string
GetDataDirstring
# GetDataDir
C#
public string GetDataDir();

Returns the absolute path to the user's data folder. This folder should be used for persistent user data files such as installed export templates. Default paths per platform:

Text
- Windows: %APPDATA%\Reckfell\                    (same as `get_config_dir()`)
- macOS: ~/Library/Application Support/Reckfell/  (same as `get_config_dir()`)
- Linux: ~/.local/share/reckfell/
Returns string
GetProjectSettingsDirstring
# GetProjectSettingsDir
C#
public string GetProjectSettingsDir();

Returns the relative path to the editor settings for this project. This is usually "asset://.reckfell/editor". Projects all have a unique subdirectory inside the settings path where project-specific editor settings are saved.

Returns string
GetSelfContainedFilestring
# GetSelfContainedFile
C#
public string GetSelfContainedFile();

Returns the absolute path to the self-contained file that makes the current Reckfell editor instance be considered as self-contained. Returns an empty string if the current Reckfell editor instance isn't self-contained. See also EditorPaths.IsSelfContained.

Returns string
IsSelfContainedbool
# IsSelfContained
C#
public bool IsSelfContained();

Returns true if the editor is marked as self-contained, false otherwise. When self-contained mode is enabled, user configuration, data and cache files are saved in an editor_data/ folder next to the editor binary. This makes portable usage easier and ensures the Reckfell editor minimizes file writes outside its own folder. Self-contained mode is not available for exported projects. Self-contained mode can be enabled by creating a file named ._sc_ or _sc_ in the same folder as the editor binary or macOS .app bundle while the editor is not running. See also EditorPaths.GetSelfContainedFile. Note: On macOS, quarantine flag should be manually removed before using self-contained mode, see Running on macOS. Note: On macOS, placing _sc_ or any other file inside .app bundle will break digital signature and make it non-portable, consider placing it in the same folder as the .app bundle instead. Note: The Steam release of Reckfell uses self-contained mode by default.

Returns bool
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.