MCPcopy Create free account
hub / github.com/arnaud-jamin/Cog / EndPlay

Method EndPlay

Source/CogSample/CogSampleAreaComponent.cpp:94–120  ·  view source on GitHub ↗

--------------------------------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

92
93//--------------------------------------------------------------------------------------------------------------------------
94void UCogSampleAreaComponent::EndPlay(const EEndPlayReason::Type EndPlayReason)
95{
96 COG_LOG_OBJECT(LogCogArea, ELogVerbosity::Verbose, GetOwner()->GetInstigator(), TEXT("Area:%s"), *GetName());
97
98 IsAtEnd = true;
99
100 if (CanPerformDetection() && DurationType != ECogSampleAreaDurationType::Instant)
101 {
102 int32 EventTypeFilter = (int32)ECogSampleAreaEventType::OnEnd;
103
104 if (ApplyTickEffectOnExit)
105 {
106 EventTypeFilter |= (int32)ECogSampleAreaEventType::OnTick;
107 }
108
109 ApplyEffectsOnActors(InsideActors, EventTypeFilter);
110
111 for (AActor* Actor : InsideActors)
112 {
113 AffectExitingActor(Actor);
114 }
115 }
116
117 InsideActors.Empty();
118
119 Super::EndPlay(EndPlayReason);
120}
121
122//--------------------------------------------------------------------------------------------------------------------------
123void UCogSampleAreaComponent::OnDurationElapsed_Implementation()

Callers

nothing calls this directly

Calls 3

GetOwnerFunction · 0.85
GetNameFunction · 0.85
GetInstigatorMethod · 0.80

Tested by

no test coverage detected