Created
January 5, 2020 19:32
-
-
Save daltonbr/93a8022ff3d50b04ff0818a6356d85b8 to your computer and use it in GitHub Desktop.
Unreal Log - my cheat sheet
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
#include "Engine/Engine.h" | |
#define PRINT(text) if (GEngine) GEngine->AddOnScreenDebugMessage(-1, 5, FColor::Green,text) | |
void UMyLogClass::BeginPlay() | |
{ | |
Super::BeginPlay(); | |
auto Name = Owner->GetName(); | |
UE_LOG(LogTemp, Warning, TEXT("[WorldPosition] (*Log) %s"), *Name); | |
PRINT("Hello"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment