Table of Contents

Struct SegmentData

Namespace
TMPEffects.Components.Animator
Assembly
TMPEffects.dll

To be used with TMPAnimator and its animations.
Contains data about a given animation segment.

public struct SegmentData
Inherited Members

Fields

effectiveLength

The effective length of the animation segment; i.e. the length of the segment from firstAnimationIndex to lastAnimationIndex.

public readonly int effectiveLength

Field Value

int

firstAnimationIndex

The index of the first character that is relevant to the TMPAnimator and will be animated.

public readonly int firstAnimationIndex

Field Value

int

firstVisibleIndex

The index of the first visible character (i.e. non-whitespace character).

public readonly int firstVisibleIndex

Field Value

int

lastAnimationIndex

The index of the last character that is relevant to the TMPAnimator and will be animated.

public readonly int lastAnimationIndex

Field Value

int

lastVisibleIndex

The index of the last visible character (i.e. non-whitespace character).

public readonly int lastVisibleIndex

Field Value

int

length

The length of the animation segment.

public readonly int length

Field Value

int

max

public readonly Vector3 max

Field Value

Vector3

min

public readonly Vector3 min

Field Value

Vector3

startIndex

The first index of the segment within the containing text.

public readonly int startIndex

Field Value

int

Methods

IndexToSegmentIndex(int)

public int IndexToSegmentIndex(int index)

Parameters

index int

Returns

int

SegmentIndexOf(CharData)

public int SegmentIndexOf(CharData cData)

Parameters

cData CharData

Returns

int