UxrInterpolator.InterpolateText Method (String, String, Single, Boolean)

Interpolates text using a typewriter effect.

Namespace: UltimateXR.Animation.Interpolation
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static string InterpolateText(
	string startText,
	string endText,
	float t,
	bool isForUnityTextUI
)

Parameters

 

startText
Type: System.String
Start text
endText
Type: System.String
End text
t
Type: System.Single
Interpolation t between range [0.0, 1.0]
isForUnityTextUI
Type: System.Boolean
If true, uses the rich text properties of the Unity UI text component to add invisible characters during interpolation. These invisible characters will help keeping the final text layout so that there are no line wraps or line jumps during the interpolation.

Return Value

Type: String
Interpolated text

Remarks

See InterpolateText(Single, Boolean, String, Object[]) to use a format string and arguments for more advanced interpolation and numerical string interpolation.

See Also

Reference

UxrInterpolator Class
InterpolateText Overload
UltimateXR.Animation.Interpolation Namespace