AActor::GetUpdateOverlapsMethodDuringLevelStreaming
#include "GameFramework/Actor.h"
Access: public
Description
Returns the resolved method this actor uses to update overlaps when loaded via level streaming. If the actor's UpdateOverlapsMethodDuringLevelStreaming property is set to UseConfigDefault, this resolves that to the actual per-class config value.
Caveats & Gotchas
- • This function resolves the 'UseConfigDefault' option by reading the class-level config (e.g. DefaultEngine.ini [/Script/Engine.Actor] DefaultUpdateOverlapsMethodDuringLevelStreaming). The raw UPROPERTY value may still say UseConfigDefault while this function returns the actual resolved value.
- • Not exposed to Blueprint — use only from C++ or editor tooling.
- • Setting UpdateOverlapsMethodDuringLevelStreaming = NeverUpdate on static background actors is a common performance optimisation; verify behavior with this getter after changing that property.
Signature
ENGINE_API EActorUpdateOverlapsMethod GetUpdateOverlapsMethodDuringLevelStreaming() const Return Type
EActorUpdateOverlapsMethod Example
Log the resolved overlap update method C++
EActorUpdateOverlapsMethod Method = GetUpdateOverlapsMethodDuringLevelStreaming();
UE_LOG(LogTemp, Log, TEXT("Overlap method: %d"), (int32)Method); Tags
Version History
Introduced in: 4.22
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?