--------------------------------------------------------------------------------------------------------------------------
| 92 | |
| 93 | //-------------------------------------------------------------------------------------------------------------------------- |
| 94 | void 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 | //-------------------------------------------------------------------------------------------------------------------------- |
| 123 | void UCogSampleAreaComponent::OnDurationElapsed_Implementation() |
nothing calls this directly
no test coverage detected