Navigation
API > API/Plugins > API/Plugins/WorldMetricsCore > API/Plugins/WorldMetricsCore/FWorldMetricCollection
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Remove () |
Removes the metric matching the type parameter class from the collection. | WorldMetricCollection.h | |
bool Remove
(
const TSubclassOf< UWorldMetricInterface >& InMetricClass |
Removes the metric matching the parameter class from the collection. | WorldMetricCollection.h |
Remove()
Description
Removes the metric matching the type parameter class from the collection. The metric object gets automatically garbage-collected unless another system holds a hard-reference to it.
| Name | Remove |
| Type | function |
| Header File | /Engine/Plugins/WorldMetrics/Source/WorldMetricsCore/Public/WorldMetricCollection.h |
| Include Path | #include "WorldMetricCollection.h" |
template<typename MetricType>
bool Remove()
True if a metric matching the type parameter class is removed and false otherwise.
Parameters
| Name | Remarks |
|---|---|
| MetricType | The UWorldMetricInterface's subclass of the metric to remove. |
Remove(const TSubclassOf< UWorldMetricInterface > &)
Description
Removes the metric matching the parameter class from the collection. The metric object gets automatically garbage-collected unless another system holds a hard-reference to it.
| Name | Remove |
| Type | function |
| Header File | /Engine/Plugins/WorldMetrics/Source/WorldMetricsCore/Public/WorldMetricCollection.h |
| Include Path | #include "WorldMetricCollection.h" |
| Source | /Engine/Plugins/WorldMetrics/Source/WorldMetricsCore/Private/WorldMetricCollection.cpp |
bool Remove
(
const TSubclassOf < UWorldMetricInterface > & InMetricClass
)
True if a metric matching the parameter class is removed and false otherwise.
Parameters
| Name | Remarks |
|---|---|
| InMetricClass | The class corresponding to the metric to remove. |