Interface ITMPSegmentData
- Namespace
- TMPEffects.Components.Animator
Provides information about text segment.
public interface ITMPSegmentData
Properties
CharInfo
The CharData.Info of each character in the segment.
IEnumerable<CharData.Info> CharInfo { get; }
Property Value
EndIndex
The last index of the segment within the containing text.
int EndIndex { get; }
Property Value
Length
The length of the animation segment.
int Length { get; }
Property Value
StartIndex
The first index of the segment within the containing text.
int StartIndex { get; }
Property Value
Methods
GetCharInfo(int)
Get a specific CharData.Info from a segment index.
CharData.Info GetCharInfo(int segmentIndex)
Parameters
segmentIndex
int
Returns
- CharData.Info
The CharData.Info associated with the segment index.
IndexToSegmentIndex(int)
Convert a text index to the index within the segment.
int IndexToSegmentIndex(int index)
Parameters
index
intThe text index to convert.
Returns
- int
The segment index.
SegmentIndexOf(CharData)
Get the segment index of the given CharData.
int SegmentIndexOf(CharData cData)
Parameters
cData
CharData