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

BlobBuilder.CreateBlobAssetReference

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

Declaration

public BlobAssetReference<T> CreateBlobAssetReference(AllocatorHandle allocator);

Parameters

Parameter Description
allocator The type of memory to allocate. Unless the asset has a very short life span, use Allocator.Persistent.

Returns

BlobAssetReference<T> Returns a reference to the blob asset in unmanaged memory.

Description

Completes construction of the blob asset and returns a reference to the asset in unmanaged memory.

Use the BlobAssetReference<T0> to access the blob asset. When the asset is no longer needed, callBlobAssetReference<T0>.Dispose to destroy the blob asset and free its allocated memory.