Print messages at runtime?

Using Naninovel C# APIs: adding custom actor implementations or commands, overriding engine services, integrating with other systems, etc.
Post Reply
zopez01
Posts: 5
Joined: 12 Jul 2021 04:54

Print messages at runtime?

Post 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?

idaot
support
Posts: 262
Joined: 01 Aug 2020 08:25

Re: Print messages at runtime?

Post by idaot »

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

Post Reply