Navigation
API > API/Plugins > API/Plugins/MetaHumanCaptureUtils
Class to be publicly inherited to get event source functionality where rate of events published is limited. All functions are thread-safe.
| Name | FCaptureEventSourceWithLimiter |
| Type | class |
| Header File | /Engine/Plugins/MetaHuman/MetaHumanAnimator/Source/MetaHumanCaptureUtils/Public/Async/EventSourceUtils.h |
| Include Path | #include "Async/EventSourceUtils.h" |
Syntax
class FCaptureEventSourceWithLimiter : public detail::FCaptureEventSourceBase
Inheritance Hierarchy
- detail::FCaptureEventSourceBase → FCaptureEventSourceWithLimiter
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FCaptureEventSourceWithLimiter
(
int32 InThresholdMillis |
Async/EventSourceUtils.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| LastPublish | std::atomic< int64 > | Async/EventSourceUtils.h | ||
| ThresholdMillis | const int32 | Async/EventSourceUtils.h |
Functions
Public
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void PublishEventIgnoreThreshold
(
EventArgs&&... InEventArgs |
Async/EventSourceUtils.h | ||
void PublishEventIgnoreThresholdPtr
(
TSharedPtr< const FCaptureEvent > InEvent |
Always publishes the event while completely ignoring the threshold mechanism. | Async/EventSourceUtils.h | |
bool PublishIfThresholdReached
(
bool bInForcePublish, |
When PublishIfThresholdReached() is called the publishing will mostly only occur if the time since last publish is greater than the threshold (although this isn't guaranteed and multiple events can still be published in rare cases). | Async/EventSourceUtils.h |