docs.unity3d.com
    Show / Hide Table of Contents

    Class AssetCollectionExtensions

    Inheritance
    Object
    AssetCollectionExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Cloud.Assets
    Syntax
    public static class AssetCollectionExtensions

    Methods

    InsertAssetsToCollectionAsync(IAssetCollectionManager, IAssetCollection, IEnumerable<IAsset>, CancellationToken)

    Inserts assets into the asset collection of an IProject.

    Declaration
    public static Task InsertAssetsToCollectionAsync(this IAssetCollectionManager collectionManager, IAssetCollection assetCollection, IEnumerable<IAsset> assets, CancellationToken token)
    Parameters
    Type Name Description
    IAssetCollectionManager collectionManager

    The IAssetCollectionManager handling the call.

    IAssetCollection assetCollection

    The collection to be modified.

    IEnumerable<IAsset> assets

    The assets to add.

    CancellationToken token

    The cancellation token.

    Returns
    Type Description
    Task

    A task with no result.

    RemoveAssetsFromCollectionAsync(IAssetCollectionManager, IAssetCollection, IEnumerable<IAsset>, CancellationToken)

    Removes assets from the asset collection of an IProject.

    Declaration
    public static Task RemoveAssetsFromCollectionAsync(this IAssetCollectionManager collectionManager, IAssetCollection assetCollection, IEnumerable<IAsset> assets, CancellationToken token)
    Parameters
    Type Name Description
    IAssetCollectionManager collectionManager

    The IAssetCollectionManager handling the call.

    IAssetCollection assetCollection

    The collection to be modified.

    IEnumerable<IAsset> assets

    The assets to remove.

    CancellationToken token

    The cancellation token

    Returns
    Type Description
    Task

    A task with no result.

    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