“UE4 -Protokoll” Code-Antworten

UE4 -Protokoll

UE_LOG(LogTemp, Warning, TEXT("Some message") );
UE_LOG(LogTemp, Warning, TEXT("The integer value is: %d"), YourInteger);
UE_LOG(LogTemp, Warning, TEXT("The float value is: %f"), YourFloat);
UE_LOG(LogTemp, Warning, TEXT("The vector value is: %s"), *YourVector.ToString());
//Multiple
UE_LOG(LogTemp, Warning, TEXT("Current values are: vector %s, float %f, and integer %d"), *YourVector.ToString(), YourFloat, YourInteger);

replace Warning by on of these:
| 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                       |                                                  |
Omadel

UE4 -Protokoll

UE_LOG(LogTemp, Warning, TEXT("Current values are: vector %s, float %f, and integer %d"), *YourVector.ToString(), YourFloat, YourInteger);
Powerful Panther

UE4 -Protokoll

UE_LOG(LogTemp, Warning, TEXT("The integer value is: %d"), YourInteger);
Powerful Panther

UE4 -Protokoll

UE_LOG(LogTemp, Warning, TEXT("The vector value is: %s"), *YourVector.ToString());
Powerful Panther

UE4 -Protokoll

UE_LOG(LogTemp, Warning, TEXT("The Actor's name is %s"), *YourActor->GetName());
Powerful Panther

UE4 -Protokoll

UE_LOG(LogTemp, Warning, TEXT("The float value is: %f"), YourFloat);
Powerful Panther

Ähnliche Antworten wie “UE4 -Protokoll”

Fragen ähnlich wie “UE4 -Protokoll”

Weitere verwandte Antworten zu “UE4 -Protokoll” auf C++

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen