Method CreateBlobAssetReference
CreateBlobAssetReference<T>(AllocatorHandle)
Completes construction of the blob asset and returns a reference to the asset in unmanaged memory.
Declaration
public BlobAssetReference<T> CreateBlobAssetReference<T>(AllocatorManager.AllocatorHandle allocator) where T : unmanaged
Parameters
Type | Name | Description |
---|---|---|
AllocatorManager.AllocatorHandle | allocator | The type of memory to allocate. Unless the asset has a very short life span, use Persistent. |
Returns
Type | Description |
---|---|
BlobAssetReference<T> | Returns a reference to the blob asset in unmanaged memory. |
Type Parameters
Name | Description |
---|---|
T | The data type of the struct used to construct the asset's root. Use the same struct type that you used when calling ConstructRoot<T>(). |
Remarks
Use the BlobAssetReference<T> to access the blob asset. When the asset is no longer needed, callDispose() to destroy the blob asset and free its allocated memory.