Navigation
API > API/Plugins > API/Plugins/WorldMetricsCore
Actor tracker class
This class provides a tracking context for actors added and removed from the world. For an actor to be considered added to the world, it must have all its components registered. This class provides two ways of usage:
- Polling mode: accessible through ForEachActorInWorld.
- Subscriber mode: this mode is enabled through acquire/release semantics. When acquired, the actor tracker subscribes to the world's PostRegisterAllActorComponents and PreUnregisterAllActorComponentsRegistered events tracking all unique actors. In addition, metrics implementing IWorldMetricsActorTrackerSubscriber receive actor addition and removal notifications.
| Name | UWorldMetricsActorTracker |
| Type | class |
| Header File | /Engine/Plugins/WorldMetrics/Source/WorldMetricsCore/Public/WorldMetricsActorTracker.h |
| Include Path | #include "WorldMetricsActorTracker.h" |
Syntax
UCLASS (MinimalAPI)
class UWorldMetricsActorTracker : public UWorldMetricsExtension
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UWorldMetricsExtension → UWorldMetricsActorTracker
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ActorAddedToWorldHandle | FDelegateHandle | WorldMetricsActorTracker.h | ||
| ActorRemovedFromWorldHandle | FDelegateHandle | WorldMetricsActorTracker.h | ||
| bIsEnabled | bool | WorldMetricsActorTracker.h | ||
| Subscribers | TArray< IWorldMetricsActorTrackerSubscriber *, TInlineAllocator< 16 > > | Subscriber list. | WorldMetricsActorTracker.h |
Functions
Public
Overridden from UWorldMetricsExtension
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual SIZE_T GetAllocatedSize() |
UWorldMetricsExtension | WorldMetricsActorTracker.h |