s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
live now
Game Jam III
Ends
Fri 25 Sep
Theme
One More Round
The jam is running. Build something, or play the entries.
£
50,000
prizepool
View the jam
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
input
Log in with Steam
Api
Editor Classes
AssetSystem
chevron_left
Editor Classes
class
AssetSystem
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.