-
-
Save holzlag0r/c9d1236b3dc9c88a54f1 to your computer and use it in GitHub Desktop.
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
### MyActor.h | |
~AMyActor(); | |
void BeginDestroy() override; | |
UPROPERTY(EditAnywhere, BlueprintReadWrite) | |
bool bTestBool; | |
UPROPERTY(VisibleAnywhere, BlueprintReadOnly) | |
TArray<AActor*> Comps; | |
### MyActor.cpp | |
AMyActor::~AMyActor() | |
{ | |
FString BoolState = bTestBool ? TEXT("true") : TEXT("false"); | |
UE_LOG(Test, Warning, TEXT("Destructor @ %s bTestBool"), *test); | |
UE_LOG(Test, Warning, TEXT("Destructor @ %d CompsNum"), Comps.Num()) | |
} | |
void AMyActor::BeginDestroy() | |
{ | |
FString BoolState = bTestBool ? TEXT("true") : TEXT("false"); | |
UE_LOG(Test, Warning, TEXT("BeginDestroy @ %s bTestBool"), *test); | |
UE_LOG(Test, Warning, TEXT("BeginDestroy @ %d CompsNum"), Comps.Num()) | |
Super::BeginDestroy(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment