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

BlobAssetReference<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

A reference to a blob asset stored in unmanaged memory.

Create a blob asset using a BlobBuilder or by deserializing a serialized blob asset.

Static Properties

Property Description
Null A "null" blob asset reference that can be used to test if a BlobAssetReference instance

Properties

Property Description
IsCreated Reports whether this instance references a valid blob asset.
Value A reference to the blob asset data, a struct of type T that is stored in the blob asset.

Public Methods

Method Description
Dispose Destroys the referenced blob asset and frees its memory.
Equals Two BlobAssetReferences are equal when they reference the same data.
GetHashCode Generates the hash code for this object.
GetUnsafePtr Provides an unsafe pointer to the blob asset data.

Static Methods

Method Description
Create Creates a blob asset from a pointer to data and a specified size.
TryRead Reads bytes from a binary reader, validates the expected serialized version, and deserializes them into a new blob asset.
Write Writes the blob data to a path with serialized version.

Operators

Operator Description
operator != Two BlobAssetReferences are not equal unless they reference the same data.
operator == Two BlobAssetReferences are equal when they reference the same data.