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
ProjectConfig
chevron_left
Classes
class
ProjectConfig
Constructors
functions
ProjectConfig
Properties
data_object
AI
data_object
AssetsDirectory
data_object
Directory
data_object
EditorReferences
data_object
FullIdent
data_object
Ident
data_object
IncludeSourceFiles
data_object
IsStandaloneOnly
data_object
Metadata
data_object
Mounts
data_object
Org
data_object
OrgTitle
data_object
PackageReferences
remove_circle
PackageType
data_object
PublishUsedAssetsOnly
data_object
Resources
data_object
Schema
data_object
Title
data_object
Type
Methods
functions
GetMetaOrDefault
functions
SetMeta
functions
ToJson
functions
TryGetMeta
ProjectConfig
Configuration of a Sandbox.Project.
class
Sandbox.DataModel
.
Sandbox.Engine
build
Constructors
1
ProjectConfig
(
)
data_object
Properties
19
AI
ProjectAISettings
Shared preferences for agent instructions and local editor automation.
AssetsDirectory
DirectoryInfo
The directory housing this addon (TODO)
Directory
DirectoryInfo
The directory housing this addon (TODO)
EditorReferences
List`1
A list of packages that this package uses but there is no need to install. For example, a map package might use a model package - but there is no need to download that model package because any usage will organically be included in the manifest. However, when loading this item in the editor, it'd make sense to install these 'cloud' packages.
FullIdent
string
Returns a combination of Org and Ident - for example "facepunch.sandbox" or "valve.cs".
Ident
string
The ident of this addon. For example "sandbox", "cs" or "dm98"
IncludeSourceFiles
bool
If true then we'll include all the source files
IsStandaloneOnly
bool
Whether or not this project is standalone-only, and supports disabling the whitelist, compiling with /unsafe, etc.
Metadata
Dictionary`2
Custom key-value storage for this project.
Mounts
List`1
A list of mounts that are required
Org
string
The ident of the org that owns this addon. For example "facepunch", "valve".
OrgTitle
string
Optional organization display name for local packages. Falls back to Sandbox.DataModel.ProjectConfig.Org when blank. Published packages use their organization's title from the backend.
PackageReferences
List`1
A list of packages that this package depends on. These should be installed alongside this package.
PackageType
obsolete
Type
Type of the package.
PublishUsedAssetsOnly
bool
Publish assets referenced by configured scenes and project settings, assets in the Resources folder at the root of each asset directory, explicit Resources patterns, and their dependencies. Code is not scanned. Enabled for new games; existing projects continue publishing all assets until they opt in.
Resources
string
Paths and wildcard patterns for files to always publish. Matching assets and their dependencies are included even when PublishUsedAssetsOnly is enabled. Matching loose files are included unchanged.
Schema
int
The version of the addon file. Allows us to upgrade internally.
Title
string
The human readable title, for example "Sandbox", "Counter-Strike"
Type
string
The project type can be game, map, menu, tool, library, addon or content. Menus load automatically on clients and in editor contexts; tools load only in editor contexts.
functions
Methods
4
GetMetaOrDefault
(
keyname
,
defaultValue
)
T
Get the package's meta value. If it's missing or the wrong type then use the default value.
SetMeta
(
keyname
,
outvalue
)
bool
Store custom data at given key in the Sandbox.DataModel.ProjectConfig.Metadata.
ToJson
(
)
string
Serialize the entire config to a JSON string.
TryGetMeta
(
keyname
,
outvalue
)
bool
Try to get a value at given key in Sandbox.DataModel.ProjectConfig.Metadata.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.