ToBlobObjectReference<T>(BlobAssetReference<T>, int)
Copies a blob asset into new blob data that a BlobObjectReference keeps alive.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
public static BlobObjectReference<T> ToBlobObjectReference<T>(this BlobAssetReference<T> blobAssetReference, int version = 0) where T : unmanaged
Parameters
The blob asset to copy.
The version of the layout of to store with the copy. The default value is 0.
TReturns
Type | Description |
|---|---|
| BlobObjectReference<T> | The new reference. You must dispose it. The reference is invalid if the |
Remarks
The method copies the blob, so you can dispose after the call. No object owns the copy: the returned reference, and the references that you BlobObjectReference<T>.Clone from it, keep it alive. The copy is freed when you dispose the last of them.
blobAssetReferenceYou can call this method from any thread.