docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AssetLabelQueryBuilder

    A class that builds and executes a query to return a set of labels assigned to an asset.

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

    Methods

    ExecuteAsync(CancellationToken)

    Excetues the query and returns the list of label names associated to each version of the specified asset.

    Declaration
    public IAsyncEnumerable<(AssetDescriptor, IEnumerable<string>)> ExecuteAsync(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CancellationToken cancellationToken

    A token that can be used to cancel the request.

    Returns
    Type Description
    IAsyncEnumerable<(AssetDescriptor, IEnumerable<string>)>

    An async enumeration of tuples of an Unity.Cloud.Common.AssetDescriptor and an enumeration of label names.

    LimitTo(Range)

    Sets the range of results to return.

    Declaration
    public AssetLabelQueryBuilder LimitTo(Range range)
    Parameters
    Type Name Description
    Range range

    The range of results.

    Returns
    Type Description
    AssetLabelQueryBuilder

    The calling TransformationQueryBuilder.

    WhereIsArchivedEquals(bool)

    Sets the query to return the labels of the given status.

    Declaration
    public AssetLabelQueryBuilder WhereIsArchivedEquals(bool isArchived)
    Parameters
    Type Name Description
    bool isArchived

    Whether the returned labels are archived or not.

    Returns
    Type Description
    AssetLabelQueryBuilder

    The calling AssetLabelQueryBuilder.

    In This Article
    Back to top
    Copyright © 2025 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)