Navigation
API > API/Plugins > API/Plugins/MetasoundFrontend
References
| Module | MetasoundFrontend |
| Header | /Engine/Plugins/Runtime/Metasound/Source/MetasoundFrontend/Public/MetasoundAssetManager.h |
| Include | #include "MetasoundAssetManager.h" |
Syntax
class IMetaSoundAssetManager
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AddAssetReferences
(
FMetasoundAssetBase& InAssetBase |
Adds missing assets using the provided asset's local reference class cache. | |
| FAssetKey | AddOrUpdateAsset
(
const FAssetData& InAssetData |
||
| FAssetKey | AddOrUpdateAsset
(
const UObject& InObject |
Add or Update a MetaSound Asset's entry data. | |
| bool | CanAutoUpdate
(
const FMetasoundFrontendClassName& InClassName |
Whether or not the class is eligible for auto-update. | |
| bool | ContainsKey
(
const Metasound::Frontend::FAssetKey& InAssetKey |
Whether or not the asset manager has loaded the given asset. | |
| void | Deinitialize () |
||
| FMetasoundAssetBase * | FindAsset
(
const Metasound::Frontend::FAssetKey& InAssetKey |
Returns object (if loaded) associated with the given key (null if key not registered with the AssetManager) If multiple assets are associated with the given key, the last one is returned. | |
| TScriptInterface< IMetaSoundDocumentInterface > | FindAssetAsDocumentInterface
(
const Frontend::FAssetKey& InKey |
Returns object (if loaded) associated with the given key as a Document Interface (null if key not registered with the AssetManager) | |
| FTopLevelAssetPath | FindAssetPath
(
const Metasound::Frontend::FAssetKey& InAssetKey |
Returns path associated with the given key (returns invalid asset path if key not registered with the AssetManager or was not loaded from asset) If multiple assets are associated with the given key, the last one is returned. | |
| TArray< FTopLevelAssetPath > | FindAssetPaths
(
const Metasound::Frontend::FAssetKey& InAssetKey |
Returns all paths associated with the given key (returns empty array if key not registered with the AssetManager or was not loaded from asset) | |
| IMetaSoundAssetManager * | Get () |
||
| const FMetasoundAssetBase * | GetAsAsset
(
const UObject& InObject |
||
| FMetasoundAssetBase * | GetAsAsset
(
UObject& InObject |
Converts an object to an AssetBase if its a registered asset. | |
| IMetaSoundAssetManager & | GetChecked () |
||
| TSet< FAssetInfo > | GetReferencedAssetClasses
(
const FMetasoundAssetBase& InAssetBase |
Generates all asset info associated with registered assets that are referenced by the provided asset's graph. | |
| void | Initialize
(
TUniquePtr< IMetaSoundAssetManager >&& InInterface |
||
| bool | IsTesting () |
||
| void | IterateAssets
(
TFunctionRef< void(const FAssetKey, const TArray< FTopLevelAssetPath >&)> Iter |
Iterate all known MetaSound asset paths. | |
| bool | ReassignClassName
(
TScriptInterface< IMetaSoundDocumentInterface > DocInterface |
Assigns a new arbitrary class name to the given document, which can cause references to be invalidated. | |
| void | Synchronously requests unregister and reregister of all loaded MetaSound assets node class entries. | ||
| void | RemoveAsset
(
const UObject& InObject |
Removes object from MetaSound asset manager. | |
| void | RemoveAsset
(
const FAssetData& InAssetData |
Removes object from MetaSound asset manager. | |
| void | RenameAsset
(
const FAssetData& InAssetData, |
Updates the given MetaSound's asset record with the new name and optionally reregisters it with the Frontend Node Class Registry. | |
| void | RequestAsyncLoadReferencedAssets
(
FMetasoundAssetBase& InAssetBase |
Requests an async load of all async referenced assets of the input asset. | |
| void | |||
| void | Set
(
IMetaSoundAssetManager& InInterface |
||
| void | SetLogActiveAssetsOnShutdown
(
bool bLogActiveAssetsOnShutdown |
Set flag for logging active assets on shutdown. In certain cases (ex. validation), it is expected that assets are active at shutdown. | |
| bool | TryGetAssetIDFromClassName
(
const FMetasoundFrontendClassName& InClassName, |
Attempts to retrieve the AssetID from the given ClassName if the ClassName is from a valid asset. | |
| FMetasoundAssetBase * | TryLoadAsset
(
const FSoftObjectPath& InObjectPath |
Attempts to load an FMetasoundAssetBase from the given path, or returns it if its already loaded. | |
| FMetasoundAssetBase * | TryLoadAssetFromKey
(
const Metasound::Frontend::FAssetKey& InAssetKey |
Returns asset associated with the given key (null if key not registered with the AssetManager or was not loaded from asset) | |
| bool | TryLoadReferencedAssets
(
const FMetasoundAssetBase& InAssetBase, |
Try to load referenced assets of the given asset or return them if they are already loaded (non-recursive). | |
| void | WaitUntilAsyncLoadReferencedAssetsComplete
(
FMetasoundAssetBase& InAssetBase |
Waits until all async load requests related to this asset are complete. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FAssetInfo |