// 출력창에 로그 출력
UE_LOG(LogTemp, Warning, TEXT("Hello"));
UE_LOG(LogTemp, Warning, TEXT("The Actor's name is %s"), *YourActor->GetName());
| Verbosity Level | Printed in Console? | Printed in Editor's Log? | Notes |
|----------------------|----------------------------|-----------------------|-------------------------------------------------------------------
| Fatal | Yes | N/A | Crashes the session, even if logging is disabled
| Error | Yes | Yes | Log text is coloured red
| Warning | Yes | Yes | Log text is coloured yellow
| Display | Yes | Yes | Log text is coloured grey
| Log | No | Yes | Log text is coloured grey
| Verbose | No | No |
| VeryVerbose | No | No |
// 스크린에 로그 출력
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::White, TEXT("This message will appear on the screen!"));
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, FString::Printf(TEXT("Some variable values: x = %f, y = %f"), x, y));
'Programming > UE4' 카테고리의 다른 글
두 벡터간의 각도 구하는 방법 (0) | 2022.12.22 |
---|---|
[UE4]DYNAMIC_MULTICAST_DELEGATE (0) | 2022.06.03 |
[UE4]UFUNCTION (0) | 2022.06.03 |
[UE4]UPROPERTY (0) | 2022.05.27 |
[UE4] 외적(CrossProduct) (0) | 2020.02.23 |