Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEditorAssetSubsystem
Description
Sorts the assets based on their meta data's type. Supported types: FString, int, float, FDateTime.
| Name | SortByMetaData |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/Subsystems/EditorAssetSubsystem.h |
| Include Path | #include "Subsystems/EditorAssetSubsystem.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Subsystems/EditorAssetSubsystem.cpp |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Asset")
bool SortByMetaData
(
TArray < FAssetData > & Assets,
FName MetaDataTag,
EEditorAssetMetaDataSortType MetaDataType,
EEditorAssetSortOrder SortOrder
)
Whether the data was sorted, e.g. false if not all assets have the MetaDataTag.
Parameters
| Name | Remarks |
|---|---|
| Assets | The assets to sort |
| MetaDataTag | The on which the sort is based |
| MetaDataType | The meta data type of MetaDataTag |
| SortOrder | Whether to sort ascending or descending |