docs.unity.cn
    Show / Hide Table of Contents

    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
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use