Method AddUniqueBlobAsset
AddUniqueBlobAsset<T>(ref BlobAssetReference<T>)
Adds a blob asset where the key that makes it unique is based on the BlobAsset contents itself. If the contents of the generated blob asset is the same as a previously inserted blob asset, then the passed blobAsset will be disposed and the reference to the blob asset will be replaced with the previously added blob asset
Declaration
public bool AddUniqueBlobAsset<T>(ref BlobAssetReference<T> blobAsset)
where T : struct
Parameters
Type | Name | Description |
---|---|---|
BlobAssetReference<T> | blobAsset | The blob asset that will be inserted or replaced |
Returns
Type | Description |
---|---|
Boolean | Returns true if the blob asset was added, returns false if the blob asset was disposed and replaced with the previous blob. |
Type Parameters
Name | Description |
---|---|
T |