Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


NativeText.Enumerator

An enumerator over the characters (not bytes) of a NativeText.
Read time 1 minuteLast updated 13 days ago

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.