public static abstract sealed class Sandbox.FileSystem
A filesystem that can be accessed by the game.
Related Guides
Broader workflow and conceptual references connected to this API.
Standard .NET file access is restricted to prevent rogue access to your files, this means you can not use System.IO.File or variants directly.
MusicPlayer is for music tracks and streaming audio that need programmatic control over playback, positioning, or visualization. For in-game sound effects and Sound components, see Sound.
You can record gameplay into a MovieClip, which can be played back or imported into Movie Maker for editing. This could be useful for killcams in shooters, leaderboard replays in racing games, or for capturing gameplay to edit into a trailer.
Decodes a video file or URL and exposes the current frame as a Texture.
We prevent access to classes and functions that could be used maliciously by whitelisting what can be used.
The Storage system provides a simple, unified way to manage user-generated content in your game. Whether you're saving game progress, storing player creations, or anything else, Storage handles everything from local file management to Steam Workshop integration.
Methods
Showing 2 methods
public static Sandbox.BaseFileSystem CreateMemoryFileSystem()
Create a filesystem that exists only in memory
public static string NormalizeFilename(string filepath)
Normalizes given file path so the game's filesystem can understand it. Fixes slashes and lowercases the file path.
Parameters
filepath: The file path to normalize
Returns
The normalized file path
No results match this filter.
Properties
Showing 3 properties
public static Sandbox.BaseFileSystem Sandbox.FileSystem.Data { get; set; }
A subset of `Sandbox.FileSystem.OrganizationData` for custom gamemode data.
public static Sandbox.BaseFileSystem Sandbox.FileSystem.Mounted { get; set; }
All mounted content.
public static Sandbox.BaseFileSystem Sandbox.FileSystem.OrganizationData { get; set; }
A filesystem for custom data, per gamemode's organization.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.FileSystem |