📅  最后修改于: 2022-03-11 14:44:45.028000             🧑  作者: Mango
//include needed
#include "Engine/Engine.h"
//Format
void AddOnScreenDebugMessage(uint64 Key, float TimeToDisplay, FColor DisplayColor, const FString & DebugMessage, bool bNewerOnTop, const FVector2D & TextScale);
//Example Code
Engine->AddOnScreenDebugMessage(0, 2, FColor::Green, TEXT("Example Message"));
//For more information vist "https://docs.unrealengine.com/en-US/API/Runtime/Engine/Engine/UEngine/AddOnScreenDebugMessage/1/index.html"