Cloudclass

For accessing assets from the cloud - from code

objectCloud
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public static abstract sealed class Sandbox.Cloud

Methods12

Showing 12 methods

public static string Asset(string ident)PUBLICSTATIC

Returns the path of the asset referenced by this package

ParameterTypeDescription
identstring
Returns:string

public static bool IsInstalled(string ident)PUBLICSTATIC

Checks if a cloud package is installed.

ParameterTypeDescription
identstring
Returns:bool

public static Sandbox.Material Material(string ident)PUBLICSTATIC

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.

ParameterTypeDescription
identstringThe cloud ident/url of the material
Returns:Material

public static Sandbox.Model Model(string ident)PUBLICSTATIC

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.

ParameterTypeDescription
identstringThe cloud ident/url of the model
Returns:Model

public static Sandbox.Package ResolvePrimaryAsset(string assetPath)PUBLICSTATIC

Resolve a primary asset to a loaded package

ParameterTypeDescription
assetPathstring
Returns:Package

public static Sandbox.Shader Shader(string ident)PUBLICSTATIC

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.

ParameterTypeDescription
identstringThe cloud ident/url of the shader
Returns:Shader

public static Sandbox.SoundEvent SoundEvent(string ident)PUBLICSTATIC

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.

ParameterTypeDescription
identstringThe cloud ident/url of the particle system
Returns:SoundEvent

On this page