Navigation
API > API/Plugins > API/Plugins/WorldMetricsCore
Base class for an extension for the World Metrics subsystem.
World Metrics subsystem extensions provide custom data/functionality to world metrics and other extensions (one to many) and have the following characteristics:
Unique: there can only be a single instance of each extension class.
Exclusively managed and owned by the World Metrics subsystem.. These should never be created directly.
Implement acquired/release semantics. The World Metrics subsystem automatically initializes extensions on acquisition and deinitializes them on release. The subsystem may deallocate an extension that have no acquisitions.
| Name | UWorldMetricsExtension |
| Type | class |
| Header File | /Engine/Plugins/WorldMetrics/Source/WorldMetricsCore/Public/WorldMetricsExtension.h |
| Include Path | #include "WorldMetricsExtension.h" |
Syntax
UCLASS (Abstract, MinimalAPI, Within=WorldMetricsSubsystem)
class UWorldMetricsExtension : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UWorldMetricsExtension
Derived Classes
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual SIZE_T GetAllocatedSize() |
Returns the amount of memory allocated by this class, not including sizeof(*this). | WorldMetricsExtension.h | |
UWorldMetricsSubsystem & GetOwner() |
Returns the owning World Metrics Subsystem which is expected to be valid during this object's lifetime. | WorldMetricsExtension.h |