Skip to content

PhaseParams

StructTextStudioTextStudio
public struct PhaseParams

Per-glyph stagger parameters for animation phasing. Controls how effects stagger across characters, words, and lines.

[TextStudioRange(0, 0.5, 0.001, "s", true)]
public float charOffset

Returns

System.Single

[TextStudioRange(0, 2.5, 0.005, "s", true)]
public float wordOffset

Returns

System.Single

[TextStudioRange(0, 5, 0.01, "s", true)]
public float lineOffset

Returns

System.Single

public float speed

Returns

System.Single

public float ComputeDelay(int glyphIndex, int wordIndex, int lineIndex)

Calculates the cumulative start delay, in seconds, for a glyph from its character, word, and line positions.

Parameters

Name Type
glyphIndex System.Int32
wordIndex System.Int32
lineIndex System.Int32

Returns

System.Single

public static PhaseParams Default { get; }

Returns

TextStudio.PhaseParams

public static PhaseParams NoOffset { get; }

Returns

TextStudio.PhaseParams