RealDocs

UActorComponent::OnEndOfFrameUpdateDuringTick

function Engine Since unknown
#include "Components/ActorComponent.h"
Access: public Specifiers: virtual

Description

Called by the engine when an end-of-frame render update occurs while a tick is still in progress. Override to block on in-flight async tasks so the component's tick is fully complete before its render state is updated.

Caveats & Gotchas

  • This is an engine-internal synchronization hook, not a general-purpose callback. Only override it if your component launches async work during Tick that must finish before the render state is sent to the render thread.
  • The default implementation is empty (no-op). Failing to override this when necessary can result in the render thread reading partially updated data.

Signature

virtual void OnEndOfFrameUpdateDuringTick()

Return Type

void

Example

Waiting for an async task before allowing render update C++
void UMyComponent::OnEndOfFrameUpdateDuringTick()
{
    // Ensure any async skinning/simulation work is done
    if (AsyncTask.IsValid())
    {
        AsyncTask->EnsureCompletion();
    }
}

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.