Cloudclass
For accessing assets from the cloud - from code
Methods12
Showing 12 methods
public static string Asset(string ident)
Returns the path of the asset referenced by this package
| Parameter | Type | Description |
|---|---|---|
| ident | string | — |
string—public static bool IsInstalled(string ident)
Checks if a cloud package is installed.
| Parameter | Type | Description |
|---|---|---|
| ident | string | — |
bool—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.
| Parameter | Type | Description |
|---|---|---|
| ident | string | 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.
| Parameter | Type | Description |
|---|---|---|
| ident | string | The cloud ident/url of the model |
public static Sandbox.ParticleSystem ParticleSystem(string ident)
Obsolete: This API member is obsolete.
| Parameter | Type | Description |
|---|---|---|
| ident | string | — |
public static Sandbox.Package ResolvePrimaryAsset(string assetPath)
Resolve a primary asset to a loaded package
| Parameter | Type | Description |
|---|---|---|
| assetPath | string | — |
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.
| Parameter | Type | Description |
|---|---|---|
| ident | string | 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.
| Parameter | Type | Description |
|---|---|---|
| ident | string | The cloud ident/url of the particle system |
No results match this filter.