Navigation
API > API/Plugins > API/Plugins/AssetManagerEditor
Inheritance Hierarchy
- IModuleInterface
- IAssetManagerEditorModule
References
| Module | AssetManagerEditor |
| Header | /Engine/Plugins/Editor/AssetManagerEditor/Source/AssetManagerEditor/Public/AssetManagerEditorModule.h |
| Include | #include "AssetManagerEditorModule.h" |
Syntax
class IAssetManagerEditorModule : public IModuleInterface
Remarks
The Asset Manager Editor module handles creating UI for asset management and exposes several commands
Functions
| Type | Name | Description | |
|---|---|---|---|
| FAssetData | CreateFakeAssetDataFromChunkId
(
int32 ChunkID |
Creates fake AssetData to represent chunks | |
| FAssetData | CreateFakeAssetDataFromPrimaryAssetId
(
const FPrimaryAssetId& PrimaryAssetId |
Creates fake AssetData to represent a primary asset | |
| void | ExtractAssetIdentifiersFromAssetDataList
(
const TArray< FAssetData >& AssetDataList, |
Parses a list of AssetData and extracts AssetIdentifiers, handles the fake asset data | |
| int32 | ExtractChunkIdFromFakeAssetData
(
const FAssetData& InAssetData |
Returns >= 0 if this is a fake chunk AssetData, otherwise INDEX_NONE | |
| FPrimaryAssetId | ExtractPrimaryAssetIdFromFakeAssetData
(
const FAssetData& InAssetData |
Returns valid PrimaryAssetId if this is a fake AssetData for a primary asset | |
| bool | FilterAssetIdentifiersForCurrentRegistrySource
(
TArray< FAssetIdentifier >& AssetIdentifiers, |
Filters list of identifiers and removes ones that do not exist in this registry source. | |
| void | GeneratePrimaryAssetTypeComboBoxStrings
(
TArray< TSharedPtr< FString > >& OutComboBoxStrings, |
Called to get list of valid primary asset types | |
| IAssetManagerEditorModule & | Get () |
Singleton-like access to this module's interface. | |
| void | GetAvailableRegistrySources
(
TArray< const FAssetManagerEditorRegistrySource* >& AvailableSources |
Gets the list of registry sources that are available | |
| const FAssetManagerEditorRegistrySource * | GetCurrentRegistrySource
(
bool bNeedManagementData |
Returns the currently selected registry source. | |
| bool | GetDisplayTextForCustomColumn
(
const FAssetData& AssetData, |
Gets a display text value for a virtual column. Returns true and sets out parameter if found | |
| bool | GetIntegerValueForCustomColumn
(
const FAssetData& AssetData, |
Gets the value of a "virtual" column for an asset data, this will query the AssetManager for you and takes current platform into account. | |
| bool | GetManagedPackageListForAssetData
(
const FAssetData& AssetData, |
Returns the set of asset packages managed the given asset data, returns true if any found. | |
| bool | GetStringValueForCustomColumn
(
const FAssetData& AssetData, |
Gets the value of a "virtual" column for an asset data, this will query the AssetManager for you and takes current platform into account. | |
| bool | IsAvailable () |
Checks to see if this module is loaded and ready. | |
| bool | IsPackageInCurrentRegistrySource
(
FName PackageName |
Returns true if this package exists in the current registry source, optionally setting a redirected package name | |
| TSharedRef< SWidget > | MakePrimaryAssetIdSelector
(
FOnGetPrimaryAssetDisplayText OnGetDisplayText, |
Creates a simple version of a Primary Asset Id selector, not bound to a PropertyHandle | |
| TSharedRef< SWidget > | MakePrimaryAssetTypeSelector
(
FOnGetPrimaryAssetDisplayText OnGetDisplayText, |
Creates a simple version of a Primary Asset Type selector, not bound to a PropertyHandle | |
| FCanOpenReferenceViewerUI & | |||
| bool | OnShouldFilterPrimaryAsset
(
const FAssetData& InAssetData, |
Called for asset picker to see rather to show asset | |
| void | OpenAssetAuditUI
(
TArray< FAssetData > SelectedAssets |
Opens asset management UI, with selected assets. Pass as value so it can be used in delegates | |
| void | OpenAssetAuditUI
(
TArray< FAssetIdentifier > SelectedIdentifiers |
||
| void | OpenAssetAuditUI
(
TArray< FName > SelectedPackages |
||
| void | OpenReferenceViewerUI
(
const TArray< FAssetIdentifier > SelectedIdentifiers, |
Spawns reference viewer, showing selected packages or identifiers | |
| void | OpenReferenceViewerUI
(
const TArray< FName > SelectedPackages, |
||
| void | OpenShaderCookStatistics
(
TArray< FName > SelectedIdentifiers |
Open the Shader cook stats | |
| void | OpenSizeMapUI
(
TArray< FAssetIdentifier > SelectedIdentifiers |
Spawns size map with selected packages | |
| void | OpenSizeMapUI
(
TArray< FName > SelectedPackages |
||
| bool | PopulateRegistrySource
(
FAssetManagerEditorRegistrySource* InOutRegistrySource |
Sets up a registry source. | |
| void | Refreshes the management dictionary and all sources | ||
| void | SetCurrentRegistrySource
(
const FString& SourceName |
Sets the current registry source, this loads the asset registry state if needed and may spawn a file load dialog for custom | |
| bool | WriteCollection
(
FName CollectionName, |
Creates a collection from a list of packages, will overwrite/modify an existing collection of the same name. |
Typedefs
| Name | Description |
|---|---|
| FCanOpenReferenceViewerUI | Returns false if should not open reference viewer for items |
Constants
| Name | Description |
|---|---|
| AllPrimaryAssetTypes | Fake type returned from type combo box to mean all types |
| ChunkFakeAssetDataPackageName | Specific package path inside PrimaryAssetFakeAssetDataPackagePath representing chunks |
| ChunksName | |
| CookRuleName | |
| DiskSizeName | |
| ManagedDiskSizeName | |
| ManagedResourceSizeName | |
| PluginName | |
| PrimaryAssetFakeAssetDataPackagePath | Fake package path used by placeholder asset data, has primary asset ID added to it to set package name |
| ResourceSizeName | Custom column names |
| StageChunkCompressedSizeName | |
| StageChunkSizeName | |
| TotalUsageName |