Dear all,
when I use the following code, I get for some reason it gives me two lines of output. It seems, that it runs the Code twice, but I don’t know why?!
int Counter=0;
void AClass::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);
++Counter;
RandNum = FMath::RandRange(0, 1);
if (Counter == 120)
{
UE_LOG(LogTemp, Warning, TEXT("Number= %i"), RandNum);
}
}
Output:
LogTemp:Warning: Number= 1
LogTemp:Warning: Number= 0