public static abstract sealed class Sandbox.Cloud
For accessing assets from the cloud - from code
Related Guides
Broader workflow and conceptual references connected to this API.
There is a large selection of Assets (Textures, Models, Sounds, ect) available to use on sbox.game, and you can use them without needing to think about downloading the files/mounting the content/ect.
If you want to access lighting information directly you can use this.
A Terrain Material is an Asset that defines a set of PBR textures, physics surfaces, detail meshes and other properties that the Terrain uses to render.
Methods
Showing 12 methods
public static string Asset(string ident)
Returns the path of the asset referenced by this package
public static bool IsInstalled(string ident)
Checks if a cloud package is installed.
public static Sandbox.Material Material(string ident)
Loads a material from the cloud by its identifier. The asset is downloaded during code compilation, so it's treated like a local material since it's shipped along with your package. If you wish to load a material at runtime, use `Sandbox.Cloud.Load`(System.String,System.Boolean)` instead.
Parameters
ident: The cloud ident/url of the material
public static Sandbox.Model Model(string ident)
Loads a model from the cloud by its identifier. The asset is downloaded during code compilation, so it's treated like a local model since it's shipped along with your package. If you wish to load a model at runtime, use `Sandbox.Cloud.Load`(System.String,System.Boolean)` instead.
Parameters
ident: The cloud ident/url of the model
public static Sandbox.ParticleSystem ParticleSystem(string ident)Obsolete
Obsolete: This API member is obsolete.
public static Sandbox.Package ResolvePrimaryAsset(string assetPath)
Resolve a primary asset to a loaded package
public static Sandbox.Shader Shader(string ident)
Loads a shader from the cloud by its identifier. The asset is downloaded during code compilation, so it's treated like a local shader since it's shipped along with your package. If you wish to load a shader at runtime, use `Sandbox.Cloud.Load`(System.String,System.Boolean)` instead.
Parameters
ident: The cloud ident/url of the shader
public static Sandbox.SoundEvent SoundEvent(string ident)
Loads a sound event from the cloud by its identifier. The asset is downloaded during code compilation, so it's treated like a local particle system since it's shipped along with your package. If you wish to load a sound event at runtime, use `Sandbox.Cloud.Load`(System.String,System.Boolean)` instead.
Parameters
ident: The cloud ident/url of the particle system
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Cloud |