s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Editor Classes
AssetSystem
chevron_left
Editor Classes
class
AssetSystem
search
Static Properties
data_object
All
Static Methods
functions
CanCloudInstall
functions
CompileResource
functions
CreateEmbeddedAsset
functions
CreateResource
functions
DeleteOrphans
functions
FindByPath
functions
GetInstalledPackages
functions
GetInstalledRevision
functions
GetPackageFiles
functions
GetReferencedPackages
functions
InstallAsync
functions
IsCloudInstalled
functions
RegisterFile
AssetSystem
The asset system, provides access to all the assets.
class
Editor
.
static
sealed
abstract
Sandbox.Tools
data_object
Static Properties
1
All
IEnumerable`1
All the assets that are being tracked by the asset system. Does not include deleted assets.
functions
Static Methods
13
CanCloudInstall
(
package
)
bool
Is this package type something we can install?
CompileResource
(
path
,
text
)
bool
Compile a resource from text.
CreateEmbeddedAsset
(
target
)
Asset
Create an Asset from a serialized property. This is expected to be an embedded asset property.
CreateResource
(
type
,
absoluteFilename
)
Asset
Create an empty Sandbox.GameResource.
DeleteOrphans
(
)
Delete orphaned trivial children. These are things that are generated for usage by an asset, but aren't referenced by anything, so are useless.
FindByPath
(
path
)
Asset
Find an asset by path.
GetInstalledPackages
(
)
IReadOnlyCollection`1
Get all packages in the download cache
GetInstalledRevision
(
packageIdent
)
IRevision
Gets the locally installed package revision by ident
GetPackageFiles
(
package
)
IReadOnlyCollection`1
GetReferencedPackages
(
)
IReadOnlyCollection`1
Get all packages, referenced by assets in the current project, in the download cache
InstallAsync
(
packageIdent
,
skipIfInstalled
,
loading
,
token
)
Task`1
IsCloudInstalled
(
packageIdent
)
bool
Is this package installed in our cloud directory?
RegisterFile
(
absoluteFilePath
)
Asset
If you just created an asset, you probably want to immediately register it
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.