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
firstAnimationIndex
The index of the first character that is relevant to the TMPAnimator and will be animated.
public readonly int firstAnimationIndex
Field Value
firstVisibleIndex
The index of the first visible character (i.e. non-whitespace character).
public readonly int firstVisibleIndex
Field Value
lastAnimationIndex
The index of the last character that is relevant to the TMPAnimator and will be animated.
public readonly int lastAnimationIndex
Field Value
lastVisibleIndex
The index of the last visible character (i.e. non-whitespace character).
public readonly int lastVisibleIndex
Field Value
length
The length of the animation segment.
public readonly int length
Field Value
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
Methods
IndexToSegmentIndex(int)
public int IndexToSegmentIndex(int index)
Parameters
index
int
Returns
SegmentIndexOf(CharData)
public int SegmentIndexOf(CharData cData)
Parameters
cData
CharData