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.

Parameters:
Return type:

Array[AssetData]

classmethod sort_by_asset_name(assets, sort_order=SortOrder.ASCENDING) Array[AssetData]

Sorts the assets by their asset name.

Parameters:
Returns:

assets (Array[AssetData]):

Return type:

Array[AssetData]

classmethod sort_by_custom_predicate(assets, sorting_predicate, sort_order=SortOrder.ASCENDING) Array[AssetData]

Sorts the assets based on a custom Blueprint delegate.

Parameters:
Returns:

assets (Array[AssetData]):

Return type:

Array[AssetData]

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:
Returns:

Whether it was possible to compare all the meta data successfully.

assets (Array[AssetData]): The assets to sort

Return type:

Array[AssetData] or None