docs.unity3d.com
    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
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023