docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DefaultBuildTasks

    Basic static class containing preset build pipeline task collections.

    Inheritance
    object
    DefaultBuildTasks
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Build.Pipeline
    Assembly: Unity.ScriptableBuildPipeline.Editor.dll
    Syntax
    public static class DefaultBuildTasks

    Methods

    ContentFileCompatible()

    Constructs and returns the IBuildTasks used to build Archive files that contain ContentFiles.

    Declaration
    public static IList<IBuildTask> ContentFileCompatible()
    Returns
    Type Description
    IList<IBuildTask>

    Returns the list of build tasks used to build Archive files that contain ContentFiles.

    ContentFileCompatible(bool)

    Constructs and returns the IBuildTasks used to build Archive files that contain ContentFiles.

    Declaration
    public static IList<IBuildTask> ContentFileCompatible(bool useContentIdsForClusterName)
    Parameters
    Type Name Description
    bool useContentIdsForClusterName

    If true, cluster names are computed from the ids of the objects contained in the cluster; otherwise they are based on the ids of the referencing assets.

    Returns
    Type Description
    IList<IBuildTask>

    Returns the list of build tasks used to build Archive files that contain ContentFiles.

    Create(Preset)

    Constructs and returns an IList containing the build tasks in the correct order for the preset build pipeline.

    Declaration
    public static IList<IBuildTask> Create(DefaultBuildTasks.Preset preset)
    Parameters
    Type Name Description
    DefaultBuildTasks.Preset preset

    The preset build pipeline to construct and return.

    Returns
    Type Description
    IList<IBuildTask>

    IList containing the build tasks in the correct order for the preset build pipeline.

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