AssetSystemclass
The asset system, provides access to all the assets.
Methods16
Showing 16 methods
public static bool CanCloudInstall(Sandbox.Package package)
Is this package type something we can install?
| Parameter | Type | Description |
|---|---|---|
| package | Package | — |
bool—public static Editor.Asset CreateEmbeddedAsset(Sandbox.SerializedProperty target)
Create an Asset from a serialized property. This is expected to be an embedded asset property.
| Parameter | Type | Description |
|---|---|---|
| target | SerializedProperty | — |
public static Editor.Asset CreateResource(string type, string absoluteFilename)
Create an empty `Sandbox.GameResource`.
| Parameter | Type | Description |
|---|---|---|
| type | string | Asset type extension for our new `Sandbox.GameResource` instance. |
| absoluteFilename | string | Where to save the new `Sandbox.GameResource` instance. For example from `Editor.FileDialog`. |
public static void DeleteOrphans()
Delete orphaned trivial children. These are things that are generated for usage by an asset, but aren't referenced by anything, so are useless.
void—public static Editor.Asset FindByPath(string path)
Find an asset by path.
| Parameter | Type | Description |
|---|---|---|
| path | string | The file path to an asset. Can be absolute or relative. |
public static System.Collections.Generic.IReadOnlyCollection`1<Sandbox.Package> GetInstalledPackages()
Get all packages in the download cache
public static Sandbox.Package.IRevision GetInstalledRevision(string packageIdent)
Gets the locally installed package revision by ident
| Parameter | Type | Description |
|---|---|---|
| packageIdent | string | — |
public static System.Collections.Generic.IReadOnlyCollection`1<string> GetPackageFiles(Sandbox.Package package)
| Parameter | Type | Description |
|---|---|---|
| package | Package | — |
IReadOnlyCollection<string>—public static System.Collections.Generic.IReadOnlyCollection`1<Sandbox.Package> GetReferencedPackages()
Get all packages, referenced by assets in the current project, in the download cache
No results match this filter.
Properties1
Showing 1 properties
public static System.Collections.Generic.IEnumerable`1<Editor.Asset> Editor.AssetSystem.All { get; set; }
All the assets that are being tracked by the asset system. Does not include deleted assets.
No results match this filter.