Class GenericAssetManager<TAsset, TRegister> | Compositor | 0.8.0-preview.2
docs.unity3d.com
    Show / Hide Table of Contents

    Class GenericAssetManager<TAsset, TRegister>

    Inheritance
    Object
    GenericAssetManager<TAsset, TRegister>
    Namespace: Unity.Compositor
    Syntax
    public sealed class GenericAssetManager<TAsset, TRegister>
        where TAsset : struct where TRegister : IAssetRegister<TAsset>
    Type Parameters
    Name Description
    TAsset
    TRegister

    Properties

    Instance

    Declaration
    public static GenericAssetManager<TAsset, TRegister> Instance { get; }
    Property Value
    Type Description
    GenericAssetManager<TAsset, TRegister>

    Methods

    AddAsset(TRegister)

    Declaration
    public void AddAsset(TRegister register)
    Parameters
    Type Name Description
    TRegister register

    Clear()

    Declaration
    public void Clear()

    GetAsset(Hash128)

    Declaration
    public BlobAssetReference<TAsset> GetAsset(Hash128 id)
    Parameters
    Type Name Description
    Hash128 id
    Returns
    Type Description
    BlobAssetReference<TAsset>

    TryGetAsset(Hash128, out BlobAssetReference<TAsset>)

    Declaration
    public bool TryGetAsset(Hash128 id, out BlobAssetReference<TAsset> asset)
    Parameters
    Type Name Description
    Hash128 id
    BlobAssetReference<TAsset> asset
    Returns
    Type Description
    Boolean
    Back to top
    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