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
- Type: Struct
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
- Implements: IEnumerable<T>, IEnumerable
public struct World.NoAllocReadOnlyCollection<T> : IEnumerable<T>, IEnumerable
Constructors
Constructor | Description |
|---|---|
| NoAllocReadOnlyCollection`1(System.Collections.Generic.List{`0}) | Construct a new instance |
Properties
Methods
Method | Description |
|---|---|
| Contains | Check if the list contains a specific element |
| GetEnumerator | Get an enumerator interface to the list |