1.
1
2
3
4
5 |
void AMyClass::Debug(int slot, FColor color, FString mess){
if (GEngine){
GEngine->AddOnScreenDebugMessage(slot, 5.f, color, mess);
}
} |
cs |
1
2
3 |
void MyClass::Test_Message(){
Debug(0, FColor::Cyan, "TEST DEBUG MESSAGE");
} |
cs |
2.
1
2 |
UE_LOG(LogTemp, Warning, TEXT("HP = %d"),hp);
UE_LOG(LogTemp, Error, TEXT("TEST DEBUG MESSAGE")); |
cs |
3.
1
2 |
int hp = 30;
FString NewString = FString::FromInt(hp); |
cs |
또는 Int를 String으로 변환해서 출력.
'프로그래밍 > Unreal' 카테고리의 다른 글
[UE4]c++ Class 삭제하는 법 (0) | 2017.09.16 |
---|---|
Blueprint) Clear Timer by Handle (0) | 2017.08.28 |
0725,26 (0) | 2017.07.26 |
Blueprint Tutorial) Construction Script Customization (3) | 2017.07.13 |
Blueprint Tutorial) Using Inputs to Control a Class BP (0) | 2017.07.12 |