기술 자료

Unity Engine

Unity Engine

NativeText.Enumerator

An enumerator over the characters (not bytes) of a NativeText.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public struct NativeText.Enumerator : IEnumerator<Unicode.Rune>, IEnumerator, IDisposable

Remarks

In an enumerator's initial state, its index is invalid. The first NativeText.Enumerator.MoveNext call advances the enumerator's index to the first character.

Constructors

Constructor

Description

Enumerator(Unity.Collections.NativeText)Initializes and returns an instance of NativeText.Enumerator.
Enumerator(Unity.Collections.NativeText.ReadOnly)Initializes and returns an instance of NativeText.Enumerator.

Properties

Property

Description

CurrentThe current character.

Methods

Method

Description

DisposeDoes nothing.
MoveNextAdvances the enumerator to the next character, returning true if NativeText.Enumerator.Current is valid to read afterwards.
ResetResets the enumerator to its initial state.