Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

BlobArray<T0>

struct in Unity.Entities

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

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

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

Additional resources: BlobBuilder

Properties

Property Description
Length The number of elements in the array.
this[int] The element of the array at the index position.

Public Methods

Method Description
AsSpan Returns a ReadOnlySpan_1 view of the blob array data.
GetUnsafePtr Provides an unsafe pointer to the array data.
ToArray Copies the elements of this BlobArray to a new managed array.