Navigation
API > API/Plugins > API/Plugins/WorldMetricsCore > API/Plugins/WorldMetricsCore/UWorldMetricsSubsystem
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
MetricClass * AddMetric () |
WorldMetricsSubsystem.h | ||
UWorldMetricInterface * AddMetric
(
const TSubclassOf< UWorldMetricInterface >& InMetricClass |
Adds a new metric instance of the parameter class to the subsystem. | WorldMetricsSubsystem.h | |
bool AddMetric
(
UWorldMetricInterface* InMetric |
Adds the parameter metric instance to the subsystem. | WorldMetricsSubsystem.h |
AddMetric()
| Name | AddMetric |
| Type | function |
| Header File | /Engine/Plugins/WorldMetrics/Source/WorldMetricsCore/Public/WorldMetricsSubsystem.h |
| Include Path | #include "WorldMetricsSubsystem.h" |
template<typename MetricClass, std::enable_if_t<, MetricClass >), int >>
MetricClass * AddMetric()
AddMetric(const TSubclassOf< UWorldMetricInterface > &)
Description
Adds a new metric instance of the parameter class to the subsystem.
| Name | AddMetric |
| Type | function |
| Header File | /Engine/Plugins/WorldMetrics/Source/WorldMetricsCore/Public/WorldMetricsSubsystem.h |
| Include Path | #include "WorldMetricsSubsystem.h" |
| Source | /Engine/Plugins/WorldMetrics/Source/WorldMetricsCore/Private/WorldMetricsSubsystem.cpp |
UWorldMetricInterface * AddMetric
(
const TSubclassOf < UWorldMetricInterface > & InMetricClass
)
true if a metric of the parameter metric class is added and false otherwise.
Parameters
| Name | Remarks |
|---|---|
| InMetricClass | the class of the metric to add. |
AddMetric(UWorldMetricInterface *)
Description
Adds the parameter metric instance to the subsystem. The subsystem will hold a hard-reference to the added metric. The user is responsible for removing it when no longer needed so it can be garbage collected.
| Name | AddMetric |
| Type | function |
| Header File | /Engine/Plugins/WorldMetrics/Source/WorldMetricsCore/Public/WorldMetricsSubsystem.h |
| Include Path | #include "WorldMetricsSubsystem.h" |
| Source | /Engine/Plugins/WorldMetrics/Source/WorldMetricsCore/Private/WorldMetricsSubsystem.cpp |
bool AddMetric
(
UWorldMetricInterface * InMetric
)
true if the parameter metric is valid and it wasn't previously added or false otherwise.
Parameters
| Name | Remarks |
|---|---|
| InMetric | the metric instance to add. |