docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ProjectExtensions

    Inheritance
    object
    ProjectExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Cloud.Assets
    Assembly: Unity.Cloud.Assets.dll
    Syntax
    public static class ProjectExtensions

    Methods

    CountAssetsAsync(IAssetProject, IAssetSearchFilter, CancellationToken)

    Returns the total count of assets in the specified projects based on the provided criteria.

    Declaration
    public static Task<int> CountAssetsAsync(this IAssetProject assetProject, IAssetSearchFilter assetSearchFilter, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    IAssetProject assetProject

    The IAssetProject.

    IAssetSearchFilter assetSearchFilter

    The filter specifying the search criteria. Can be null.

    CancellationToken cancellationToken

    A token that can be used to cancel the request.

    Returns
    Type Description
    Task<int>

    A task whose result is an asset count.

    ListCollectionsAsync(IAssetProject, Range, CancellationToken)

    Returns the collections of the project.

    Declaration
    public static IAsyncEnumerable<IAssetCollection> ListCollectionsAsync(this IAssetProject assetProject, Range range, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    IAssetProject assetProject

    The IAssetProject.

    Range range

    The range of results to return.

    CancellationToken cancellationToken

    A token that can be used to cancel the request.

    Returns
    Type Description
    IAsyncEnumerable<IAssetCollection>
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)