Created
October 28, 2018 11:27
-
-
Save olegknyazev/07b4572f767f3279f14c16aee50d564d to your computer and use it in GitHub Desktop.
About Formatting: Actor::Destroy() from Unreal Engine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void AActor::BeginDestroy() | |
{ | |
ULevel* OwnerLevel = GetLevel(); | |
UnregisterAllComponents(); | |
if (OwnerLevel && !OwnerLevel->HasAnyInternalFlags(EInternalObjectFlags::Unreachable)) | |
{ | |
OwnerLevel->Actors.RemoveSingleSwap(this, false); | |
} | |
Super::BeginDestroy(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment