Disabled line splitting by default

This commit is contained in:
lumpn 2023-04-20 22:42:27 +08:00
parent a0810d0781
commit 59e0e5414f
2 changed files with 3 additions and 3 deletions

View File

@ -136,7 +136,7 @@ void UTypewriterTextWidget::StartPlayLine()
{
CalculateWrappedString(RemainingLinePart);
if (NumberOfLines > MaxNumberOfLines)
if (MaxNumberOfLines > 0 && NumberOfLines > MaxNumberOfLines)
{
int MaxLength = CalculateMaxLength();
int TerminatorIndex = FindLastTerminator(RemainingLinePart, MaxLength);

View File

@ -84,9 +84,9 @@ public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Typewriter")
float PauseTimeAtSentenceTerminators = 0.5f;
/// How many lines of text at most to print at once.
/// How many lines of text at most to print at once. (disabled by default)
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Typewriter")
int MaxNumberOfLines = 3;
int MaxNumberOfLines = 0;
/// Set Text immediately
UFUNCTION(BlueprintCallable)