docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Property Length

    Length

    The number of elements the buffer holds.

    Declaration
    public int Length { get; set; }
    Property Value
    Type Description
    int
    Implements
    Unity.Collections.IIndexable<T>.Length
    Examples
    for (int i = 0; i < buffer.Length; i++)
    {
        buffer[i] = i * i;
    }
    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)