UActorComponent::IsReadyForEarlyEndOfFrameUpdate
#include "Components/ActorComponent.h"
Access: public
Specifiers: inlineconst
Description
Returns true if this component was marked for end-of-frame update with the bReadyForEarlyUpdate flag, allowing the engine to process it on a worker thread before the strict end-of-frame point.
Caveats & Gotchas
- • This is a read-only query of the bReadyForEarlyEndOfFrameUpdate flag set by MarkForNeededEndOfFrameUpdate — do not use the result to conditionally skip work, only to inspect scheduling state.
- • A return value of true does not mean the update has already run — it means it *may* run early if the scheduler decides to.
- • The flag is cleared once the update executes, so polling this after end-of-frame will return false even if it was originally set.
Signature
inline bool IsReadyForEarlyEndOfFrameUpdate() const Return Type
bool Example
Inspect early-update eligibility in a debug tool C++
void UMyDebugComponent::LogFrameUpdateState() const
{
UE_LOG(LogTemp, Verbose, TEXT("%s early-update eligible: %s"),
*GetName(),
IsReadyForEarlyEndOfFrameUpdate() ? TEXT("yes") : TEXT("no"));
} Tags
Version History
Introduced in: 4.9
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?