Print messages at runtime?

Posted: 12 Mar 2023 03:00
by zopez01

Hi I was testing this script that prints a text at runtime.

var printer = Engine.GetService<ITextPrinterManager>();
printer.PrintTextAsync("MyPrinter", "Message");

It works correctly, but when writing a new message, the texts are added to the previous one, is there any way to clean the TexPrinter when adding a new text?


Re: Print messages at runtime?

Posted: 12 Mar 2023 09:24
by idaot

Make sure Auto Reset is enabled on the printer's configuration, that will make the printer reset itself on every print call.