When the compile button is pressed the construction script will run 3 times.
MyTestComponent.h
 UFUNCTION(BlueprintCallable, Category = "Test")
 void TestThing();
MyTestComponent.cpp:
int g_Runtimes = 0; void UMyTestComponent::TestThing() { UE_LOG(LogTemp, Log, TEXT("It is running %d times."), g_Runtimes); ++g_Runtimes; }
Watch the video linked below for further reference:
[Link Removed]
Head over to the existing Questions & Answers thread and let us know what's up.
| 0 | 
| Component | UE - Gameplay - Blueprint | 
|---|---|
| Affects Versions | 4.7.5 | 
| Created | Apr 20, 2015 | 
|---|---|
| Resolved | Apr 22, 2015 | 
| Updated | Jul 14, 2021 |