s&box docs

public static abstract sealed class Sandbox.Cloud

For accessing assets from the cloud - from code

Broader workflow and conceptual references connected to this API.

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.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

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Cloud

On this page