Documentation

Unity Engine


Unity Engine


World.NoAllocReadOnlyCollection<T>

Read only collection that doesn't generate garbage when used in a foreach.
Read time 1 minuteLast updated a day ago

Definition

public struct World.NoAllocReadOnlyCollection<T> : IEnumerable<T>, IEnumerable

Constructors

Constructor

Description

NoAllocReadOnlyCollection`1(System.Collections.Generic.List{`0})Construct a new instance

Properties

Property

Description

CountThe number of list elements
this[]Look up a list element by index

Methods

Method

Description

ContainsCheck if the list contains a specific element
GetEnumeratorGet an enumerator interface to the list