docs.unity3d.com
    Show / Hide Table of Contents

    Method CreateBlobAssetReference

    CreateBlobAssetReference<T>(Allocator)

    Completes construction of the blob asset and returns a reference to the asset in unmanaged memory.

    Declaration
    public BlobAssetReference<T> CreateBlobAssetReference<T>(Allocator allocator)
        where T : struct
    Parameters
    Type Name Description
    Allocator allocator

    The type of memory to allocate. Unless the asset has a very short life span, use Persistent.

    Returns
    Type Description
    BlobAssetReference<T>
    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.

    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