docs.unity.cn
    Show / Hide Table of Contents

    Struct BlobArray<T>

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

    Namespace: Unity.Entities
    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
    Item[Int32]

    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
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use