UE_LOG는 콘솔에 표시되는 것이지만 블루프린트 Print 노드 처럼 화면에 메세지를 나타내는 방법도 있다
사용전 #include "Engine.h"를 포함시키고
Engine->AddOnScreenDebugMessage(-1, 5.0f, FColor::Yellow, TEXT("Hello world"));
처럼 사용하면 된다.
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Engine/Engine.h |
Include | #include "Engine/Engine.h" |
Source | /Engine/Source/Runtime/Engine/Private/UnrealEngine.cpp |
Syntax
Remarks
Add a FString to the On-screen debug message system. bNewerOnTop only works with Key == INDEX_NONE
This function will add a debug message to the onscreen message list. It will be displayed for FrameCount frames.
Parameters
ParameterDescription
Key | A unique key to prevent the same message from being added multiple times. |
TimeToDisplay | How long to display the message, in seconds. |
DisplayColor | The color to display the text in. |
DebugMessage | The message to display. |