How to change print string screen position?

Is there a way to adjust the screen position of the print string output ?

some setting or umg widget to adjust?

I want to put it more to the middle of the screen so it shows up in VR …

You could use an Append String and put space in front of what you want to print to offset it.

Looks like the only solution really…just to move the text over with spaces or a few dashes…

78551-untitled-1.jpg

my own solution for VR projects is to set up render text components attached to the camera (easy with the 4.11 camera refactor ) and output any info to that instead.

First Google hit so I’m going to put my solution here. I’m also a VR dev and this has driven me nuts for years.

You will need to edit UnrealEngine.cpp, starting inside the function
float UEngine::DrawOnscreenDebugMessages()
at line 11887 in version 5.3 (basically at the top)

float VRFontScale = 1.0f;
#if WITH_EDITORONLY_DATA
	if (const UEditorEngine* EditorEngine = Cast<UEditorEngine>(GEngine))
	{
		const FString Section = TEXT("VRPrintDebug");
		if (EditorEngine->IsVRPreviewActive() && GConfig->DoesSectionExist(*Section, GEngineIni))
		{
			FString Key = TEXT("VRPrintDebugTextScale");
			GConfig->GetFloat(*Section, *Key, VRFontScale, GEngineIni);

			Key = TEXT("VRPrintDebugXPos");
			GConfig->GetFloat(*Section, *Key, MessageX, GEngineIni);
			
			Key = TEXT("VRPrintDebugYPos");
			GConfig->GetFloat(*Section, *Key, MessageY, GEngineIni);
		}
	}
#endif // WITH_EDITORONLY_DATA

Then in the two places (PriorityScreenMessages and ScreenMessages) it sets the MessageTextItemScale, change it to:

MessageTextItem.Scale = Message.TextScale * VRFontScale;

This will now read values from your DefaultEngine.ini file in a new section that looks like so:

[VRPrintDebug]
VRPrintDebugTextScale=2.0
VRPrintDebugXPos=250.0
VRPrintDebugYPos=100.0

And add this include at the top

#if WITH_EDITORONLY_DATA
#include "Editor/EditorEngine.h"
#endif

hope this helps y’all!