s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
jams
Workshop
Steam
open_in_new
Steam Workshop
Assets
view_in_ar
Models
texture
Materials
apparel
Clothing
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Classes
Package
chevron_left
Classes
class
Package
Constructors
functions
Package
Properties
data_object
ApiVersion
data_object
Archived
data_object
AssetLicense
data_object
CanEdit
data_object
Collections
data_object
Created
data_object
Description
data_object
DownloadFraction
data_object
EditorReferences
data_object
EngineVersion
data_object
ErrorRate
data_object
Favourited
data_object
FileSize
data_object
Flair
data_object
FullIdent
data_object
Ident
data_object
Info
data_object
InstallsFromWorkshop
data_object
Interaction
data_object
IsFavourite
data_object
IsRemote
remove_circle
LatestChangeLists
data_object
LatestNewsPost
data_object
LoadingScreen
data_object
Metadata
data_object
Org
data_object
PackageReferences
remove_circle
PackageType
data_object
PrimaryAsset
data_object
Public
data_object
Referenced
data_object
Referencing
remove_circle
Reviews
data_object
Revision
data_object
Screenshots
remove_circle
Source
data_object
Summary
data_object
Tags
data_object
Thumb
data_object
ThumbTall
data_object
ThumbWide
data_object
Title
data_object
TypeName
data_object
Updated
data_object
Url
data_object
Usage
data_object
VideoThumb
data_object
VotesDown
data_object
VotesUp
data_object
WorkshopId
Methods
lock
ClearMetaCache
functions
GetAchievements
functions
GetCachedMeta
remove_circle
GetChangeListsAsync
functions
GetMeta
functions
GetValue
functions
IsMounted
functions
MountAsync
Static Methods
functions
Fetch
functions
FetchAsync
functions
FetchVersions
functions
FindAsync
functions
FormatIdent
functions
GetCachedTitle
functions
GetLocalProject
remove_circle
ListAsync
functions
SetFavouriteAsync
functions
SetVoteAsync
functions
SortByReferences
functions
TryGetCached
remove_circle
TryParseIdent
functions
TryParseIdentParts
functions
UpdateValue
functions
UploadFile
Package
Represents an asset on Asset Party.
class
Sandbox
.
Sandbox.Engine
build
Constructors
1
Package
(
)
data_object
Properties
50
ApiVersion
int
For game extension compatibility. Game targeting extensions are only compatible with that game if the API Versions match.
Archived
bool
Whether this package is archived or not.
AssetLicense
string
The license covering this package's art/content assets, identified by name (e.g. "CC0", "CC_BY"). Null when no license is specified. Matches
PackageLicense.Name
in the license catalog, so it can be used to look up the full license details.
CanEdit
bool
True if we're a member of this package's organization.
Collections
int
How many collections we're in (roughly)
Created
DateTimeOffset
When the package was originally created.
Description
string
Full description of the package.
DownloadFraction
Nullable`1
Fraction of this revision's content bytes downloaded while mounting it in the current game. Returns null when the transfer has no byte progress to report.
EditorReferences
String[]
List of packages that this package depended on during editing.
EngineVersion
int
Engine version this package was uploaded with. This is useful for when the base game undergoes large API changes.
ErrorRate
float
What fraction of users got errors from this package in the last day
Favourited
int
Number of players who added this package to their favourites.
FileSize
float
The total size of this package in MB. This only applies to packages from Asset Party, the total file size of local packages are not calculated.
Flair
ImmutableArray`1
Small icon badges shown over the package's thumbnail - workshop-approved, updated-since-you-played, favourited, contest-winner, etc. Computed on the backend when the package is served. Never default; empty when there's no flair.
FullIdent
string
Full unique identity of this package. Cached against the org and ident it was built from, so it's only formatted when they change.
Ident
string
Unique identity of this package within its
organization.
.
Info
PackageInfo
Strongly-typed shortcuts for the well-known data values the menu/launcher reads via Sandbox.Package.GetValue``1(System.String,``0). Sandbox.PackageInfo is a thin readonly view over this package, so
package.Info.IsStreamerGame
allocates nothing and keeps the magic string keys and their defaults in one place.
InstallsFromWorkshop
bool
Are this package's files installed from its Steam Workshop item, rather than downloaded from the backend? Only games and addons - clothing has a workshop item too, but its files are on the backend.
Interaction
PackageInteraction
Describes the authenticated user's interactions with this package. This is only available clientside for specific users in order to show things like play history state, favourite status and whether they have rated the item or not.
IsFavourite
bool
True if this asset is in our favourite list.
IsRemote
bool
Whether this is a remote or a locally installed package.
LatestChangeLists
obsolete
ImmutableArray`1
Empty for packages from the current backend.
LatestNewsPost
News
The latest news post created by this package
LoadingScreen
LoadingScreenSetup
If this package is a game, it can provide media to show on the loading screen
Metadata
AssetMetaData
Server-extracted metadata for the current version's compiled asset (model stats, material flags, clothing info, ...). Null if the version hasn't been processed or its type isn't recognised. Pattern-match the concrete type, e.g.
if ( package.Metadata is Package.ModelMetaData m )
.
Org
Organization
The owner of this package.
PackageReferences
String[]
List of packages that this package depends on. These will be downloaded and installed when installing this package.
PackageType
obsolete
Type
What kind of package it is.
PrimaryAsset
string
Gets the name of the primary asset path stored in the package metadata. This could be null or empty.
Public
bool
Whether this package is public or hidden.
Referenced
int
How many packages we're referenced by (roughly)
Referencing
int
How many packages we're referencing (roughly)
Reviews
obsolete
ReviewStats
Legacy review statistics. Fetched packages have empty counts.
Revision
IRevision
Information about the current package revision/version.
Screenshots
Screenshot[]
A list of screenshots
Source
obsolete
string
Link to this package's sources, if set.
Summary
string
A short summary of the package.
Tags
String[]
List of tags for this package.
Thumb
string
Link to the thumbnail image of this package.
ThumbTall
string
Link to the thumbnail image of this package.
ThumbWide
string
Link to the thumbnail image of this package.
Title
string
A "nice" name of this package, which will be shown to players in UI.
TypeName
string
What kind of package it is.
Updated
DateTimeOffset
When the entry was last updated. If these are different between packages then something updated on the backend.
Url
string
A link to this asset on our backend
Usage
PackageUsageStats
Statistics for user interactions with this package
VideoThumb
string
Link to the thumbnail video of this package.
VotesDown
int
Number of players who voted this package down.
VotesUp
int
Number of players who voted this package up.
WorkshopId
UInt64
The Steam Workshop item this package's files are installed from, or 0 if they're downloaded from the backend.
functions
Methods
8
ClearMetaCache
(
)
The meta's changed - forget what GetCachedMeta remembered
GetAchievements
(
)
ValueTask`1
Get a list of achievements
GetCachedMeta
(
keyName
,
defaultValue
)
T
Sandbox.Package.GetMeta``1(System.String,``0) but with cache.
GetChangeListsAsync
(
page
)
obsolete
Task`1
Returns an empty page for legacy callers.
GetMeta
(
keyName
,
defaultValue
)
T
Get metadata value from this package for given key. This will be specific to each Sandbox.Package.Type.
GetValue
(
name
,
defaultValue
)
T
Get a data value. These are usually set on the backend, and are package type specific. These are generally values that are used to configure behaviour in the menu system.
IsMounted
(
)
bool
Check if the package is installed and mounted
MountAsync
(
)
Task`1
Mounts the package's content files for the current game.
functions
Static Methods
16
Fetch
(
identString
,
partial
)
Task`1
Find package information
FetchAsync
(
identString
,
partial
)
Task`1
Find package information, preferring registered local projects on disk.
FetchVersions
(
identString
,
token
)
Task`1
Get package version list
FindAsync
(
query
,
take
,
skip
,
token
)
Task`1
Retrieve a list of packages
FormatIdent
(
org
,
package
,
version
)
string
GetCachedTitle
(
ident
)
string
If we have this package information, try to get its name
GetLocalProject
(
package
)
Project
Gets the project backing a local package. Published packages have no local project.
ListAsync
(
id
,
token
)
obsolete
Task`1
Returns an empty discovery list for legacy callers.
SetFavouriteAsync
(
package
,
state
)
Task
Mark this package as a favourite
SetVoteAsync
(
package
,
up
)
Task
Add your vote for this package
SortByReferences
(
unordered
)
IEnumerable`1
TryGetCached
(
identString
,
package
,
allowPartial
)
bool
Find package information
TryParseIdent
(
ident
,
parsed
)
obsolete
bool
TryParseIdentParts
(
ident
,
parsed
)
bool
UpdateValue
(
package
,
key
,
value
,
token
)
Task
Update a value on this package
UploadFile
(
package
,
absolutePath
,
relativePath
,
progress
,
token
)
Task`1
Mark this package as a favourite
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.