Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


FormatItem

Base class that represents a substring of text from a parsed format string.
Read time 1 minuteLast updated 11 hours ago

Definition

public abstract class FormatItem

Properties

Property

Description

BaseStringGets the base format string.
EndIndexThe end index is pointing to ONE POSITION AFTER the last character of item.
LengthGets the result of FormatItem.EndIndex minus FormatItem.StartIndex.
ParentFormatItemThe parent FormatItem of this instance,
null
if no parent exists.
RawTextRetrieves the raw text that this item represents.
SmartSettingsThe settings for formatter and parser.
StartIndexThe start index is pointing to the first character of item.

Methods

Method

Description

AsSpanGets the ReadOnlySpan_1 representation of this FormatItem.
ClearClears the FormatItem or the derived class.
InitializeInitializes the FormatItem or the derived class.
ToStringGets the string representation of this FormatItem.