文档

Unity Engine

Unity Engine

Initialize(SmartSettings, FormatItem, string, int, int, int, int)

Initializes this Selector instance.
阅读时间1 分钟最后更新于 1 个月前

Definition

public Selector Initialize(SmartSettings settings, FormatItem parent, string baseString, int startIndex, int endIndex, int operatorStartIndex, int selectorIndex)

Parameters

Formatter and parser settings.

Parent FormatItem.

baseString

Input format string.

startIndex

Start index of the selector inside the FormatItem.BaseString.

endIndex

End index of the selector inside the FormatItem.BaseString.

operatorStartIndex

Start index of the operator that precedes the selector.

selectorIndex

Index of the selector within its Placeholder.

Returns

Type

Description

SelectorThis Selector instance.