docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct BlobArray<T>

    An immutable array of value types stored in a blob asset.

    Namespace: Unity.Entities
    Assembly: Unity.Entities.dll
    Syntax
    public struct BlobArray<T> where T : struct
    Type Parameters
    Name Description
    T

    The data type of the elements in the array. Must be a struct or other value type.

    Remarks

    When creating a blob asset, use the BlobBuilderArray<T> provided by a BlobBuilder instance to set the array elements.

    Properties

    Name Description
    this[int]

    The element of the array at the index position.

    Length

    The number of elements in the array.

    Methods

    Name Description
    GetUnsafePtr()

    Provides an unsafe pointer to the array data.

    ToArray()

    Copies the elements of this BlobArray to a new managed array.

    See Also

    BlobBuilder
    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)