docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetOrCreateBuildArtifact

    GetOrCreateBuildArtifact(Type)

    Get the first build artifact value that is assignable to specified type, or create and set it if not found. Multiple build artifact value can be stored per build configuration.

    Declaration
    public IBuildArtifact GetOrCreateBuildArtifact(Type buildArtifactType)
    Parameters
    Type Name Description
    Type buildArtifactType

    The build artifact type.

    Returns
    Type Description
    IBuildArtifact

    The build artifact value.

    GetOrCreateBuildArtifact<T>()

    Get the first build artifact value that is assignable to specified type, or create and set it if not found. Multiple build artifact value can be stored per build configuration.

    Declaration
    public T GetOrCreateBuildArtifact<T>() where T : class, IBuildArtifact, new()
    Returns
    Type Description
    T

    The build artifact value.

    Type Parameters
    Name Description
    T

    The build artifact type.

    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)