![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <TypedElementCounter.h>
Public Types | |
| using | FCounterValue = int32 |
Static Public Member Functions | |
| static TYPEDELEMENTFRAMEWORK_API FName | GetElementTypeCategoryName () |
Tracks various categories of counters for the typed elements (eg, the number of elements of a given type). The categories counted may be expanded by element types that implement the UTypedElementCounterInterface API.
|
default |
|
explicit |
|
delete |
|
default |
| void FTypedElementCounter::AddElement | ( | const FTypedElementHandle & | InElementHandle | ) |
Update the counter categories to include the given element.
|
inline |
Clear the value of the counter for the given category and key.
| void FTypedElementCounter::ClearCounters | ( | ) |
Clear all counters.
Clear the value of the counters for the given category.
|
inline |
Decrement the counter for the given category and key.
|
inline |
Enumerate the value of the counters for the given category.
|
inline |
Get the value of the counter for the given category and key, or zero if the category or key are unknown.
|
static |
Get the category name used to count element types (by type ID).
|
inline |
Increment the counter for the given category and key.
| void FTypedElementCounter::Initialize | ( | UTypedElementRegistry * | InRegistry | ) |
Explicitly initialize this instance, if it was previously default constructed.
|
delete |
|
default |
| void FTypedElementCounter::RemoveElement | ( | const FTypedElementHandle & | InElementHandle | ) |
Update the counter categories to remove the given element.