docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IIndexable<T>

    An indexable collection.

    Namespace: Unity.Collections
    Assembly: Unity.Collections.dll
    Syntax
    public interface IIndexable<T> where T : unmanaged
    Type Parameters
    Name Description
    T

    The type of the elements in the collection.

    Properties

    Length

    The current number of elements in the collection.

    Declaration
    int Length { get; set; }
    Property Value
    Type Description
    int

    The current number of elements in the collection.

    Methods

    ElementAt(int)

    Returns a reference to the element at a given index.

    Declaration
    ref T ElementAt(int index)
    Parameters
    Type Name Description
    int index

    The index to access. Must be in the range of [0..Length).

    Returns
    Type Description
    T

    A reference to the element at the index.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)