docs.unity3d.com
    Show / Hide Table of Contents

    Interface IIndexable<T>

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

    The type of the elements in the container.

    Properties

    Length

    The current length of the container.

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

    Methods

    ElementAt(Int32)

    Return a ref to the T at the given T index. The index must be in the range of [0..Length).

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

    The T index to access.

    Returns
    Type Description
    T

    A ref T for the requested index.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023