unreal.AssetFilteringAndSortingFunctionLibrary
¶
- class unreal.AssetFilteringAndSortingFunctionLibrary(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
BlueprintFunctionLibrary
This library’s purpose is to facilitate Blueprints to discover assets using some filters and sort them.
C++ Source:
Plugin: VirtualCamera
Module: VirtualCamera
File: AssetFilteringAndSortingFunctionLibrary.h
- classmethod get_all_assets_by_meta_data_tags(required_tags, allowed_classes) Array[AssetData] ¶
Gets all assets which have the given tags.
- classmethod sort_by_asset_name(assets, sort_order=SortOrder.ASCENDING) Array[AssetData] ¶
Sorts the assets by their asset name.
- classmethod sort_by_custom_predicate(assets, sorting_predicate, sort_order=SortOrder.ASCENDING) Array[AssetData] ¶
Sorts the assets based on a custom Blueprint delegate.
- classmethod sort_by_meta_data(assets, meta_data_tag, meta_data_type, sort_order=SortOrder.ASCENDING) Array[AssetData] or None ¶
Sorts the assets based on their meta data’s type. Supported types: FString, int, float, FDateTime.
- Parameters:
meta_data_tag (Name) – The on which the sort is based
meta_data_type (AssetTagMetaDataSortType) –
sort_order (SortOrder) – Whether to sort ascending or descending
- Returns:
Whether it was possible to compare all the meta data successfully.
assets (Array[AssetData]): The assets to sort
- Return type: