docs.unity.cn
    Show / Hide Table of Contents

    Struct World.NoAllocReadOnlyCollection<T>

    Read only collection that doesn't generate garbage when used in a foreach.

    Namespace: Unity.Entities
    Syntax
    public struct NoAllocReadOnlyCollection<T> : IEnumerable<T>, IEnumerable
    Type Parameters
    Name Description
    T

    The list element type

    Constructors

    Name Description
    NoAllocReadOnlyCollection(List<T>)

    Construct a new instance

    Properties

    Name Description
    Count

    The number of list elements

    Item[Int32]

    Look up a list element by index

    Methods

    Name Description
    Contains(T)

    Check if the list contains a specific element

    GetEnumerator()

    Get an enumerator interface to the list

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023