docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IDependency

    Represents a reference to a dependency that will be resolved before deployment. Most likely, it is not a Deployment Item, but some unique way to find it

    Namespace: Unity.Services.DeploymentApi.Editor
    Assembly: Unity.Services.DeploymentApi.dll
    Syntax
    public interface IDependency

    Methods

    Resolve(IReadOnlyList<IDeploymentItem>)

    Returns the DeploymentItem that matches the dependency, null otherwise

    Declaration
    IDeploymentItem Resolve(IReadOnlyList<IDeploymentItem> deployedItems)
    Parameters
    Type Name Description
    IReadOnlyList<IDeploymentItem> deployedItems

    Items that are being deployed

    Returns
    Type Description
    IDeploymentItem

    Item that satisfies the dependency, null otherwise

    Resolve(IReadOnlyList<IDeploymentItem>, Func<IDeploymentItem, bool>)

    Depth-first search over the Dependency Items tree over a predicate.Nu

    Declaration
    public static IDeploymentItem Resolve(IReadOnlyList<IDeploymentItem> deployedItems, Func<IDeploymentItem, bool> predicate)
    Parameters
    Type Name Description
    IReadOnlyList<IDeploymentItem> deployedItems

    Deployment Items to search through

    Func<IDeploymentItem, bool> predicate

    Function to identify relevant item

    Returns
    Type Description
    IDeploymentItem

    First item that matches the predicate

    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)