public sealed class Sandbox.Storage.Entry
A folder of content stored on disk
Related Guides
Broader workflow and conceptual references connected to this API.
Leaderboards are just stats, aggregated and ordered.
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.
VirtualGrid is a Panel that allows you to create a grid of items virtually. What this means is that if you have 1 million items, it won't render them and try to lay them all out at the same time. It'll just pick the few that are visible and create them. When you scroll down, it'll delete the ones it can no longer see and create the new visible ones.
Constructors
Showing 1 constructors
public Entry(string type)
Creates a new storage entry with the specified type
Parameters
type: The content type (letters only, 1-16 characters)
No results match this filter.
Methods
Showing 6 methods
public void Delete()
Deletes this storage entry and all its files from disk
public T GetMeta(string key, T defaultValue = null)
Get a meta value
Parameters
defaultValue: Default: null
public void SetMeta(string key, T value)
Set a meta value
public void SetThumbnail(Sandbox.Bitmap bitmap)
Sets the thumbnail for this storage entry
Parameters
bitmap: The bitmap to use as the thumbnail
No results match this filter.
Properties
Showing 5 properties
public System.DateTimeOffset Sandbox.Storage.Entry.Created { get; set; }
When this content was created
public Sandbox.BaseFileSystem Sandbox.Storage.Entry.Files { get; set; }
This is where you save and load your files to
public string Sandbox.Storage.Entry.Id { get; set; }
The identity of this content
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | global |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Storage.Entry |