Api Sandbox Cloud
class

Cloud

public static abstract sealed class Cloud

For accessing assets from the cloud - from code

Methods

static String Asset(String ident)

Returns the path of the asset referenced by this package

static 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 Boolean) instead.

ident — The cloud ident/url of the model
static 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 Boolean) instead.

ident — The cloud ident/url of the material
static ParticleSystem ParticleSystem(String ident)
static 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 Boolean) instead.

ident — The cloud ident/url of the particle system
static 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 Boolean) instead.

ident — The cloud ident/url of the shader
static Task<T> Load(String ident, Boolean withCode = False)

Loads a resource asynchronously from the cloud by its identifier, downloading the package if the client doesn't have it locally.

static Boolean IsInstalled(String ident)

Checks if a cloud package is installed.

static Task Load(String ident)

Loads a cloud package asynchronously from the cloud by its identifier

static Package ResolvePrimaryAsset(String assetPath)

Resolve a primary asset to a loaded package

static Package[] ResolvePrimaryAssetsFromJson(JsonNode jso)

Given a json value, walk it and find paths, resolve them to packages

static Package[] ResolvePrimaryAssetsFromJson(String json)

Given a json string, walk it and find paths, resolve them to packages

Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.Cloud