docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Property Length

    Length

    The number of elements in the array.

    Declaration
    public int Length { get; }
    Property Value
    Type Description
    int
    Remarks

    Unity assigns the length of the array when you call CreateBlobAssetReference<T>(AllocatorHandle), so until then this property returns 0. To get the number of elements before that point, use the Length property of the BlobBuilderArray<T> that Allocate<T>(ref BlobArray<T>, int) returns.

    In This Article
    Back to top
    Copyright © 2026 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)