Class AddressableAssetBuildResult | Addressables | 1.13.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class AddressableAssetBuildResult

    Contains information about the status of the build.

    Inheritance
    Object
    AddressableAssetBuildResult
    AddressablesPlayerBuildResult
    AddressablesPlayModeBuildResult
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.AddressableAssets.Build
    Syntax
    public class AddressableAssetBuildResult : IDataBuilderResult

    Properties

    Duration

    Duration of build, in seconds.

    Declaration
    public double Duration { get; set; }
    Property Value
    Type Description
    Double
    Implements
    IDataBuilderResult.Duration

    Error

    Error that caused the build to fail.

    Declaration
    public string Error { get; set; }
    Property Value
    Type Description
    String
    Implements
    IDataBuilderResult.Error

    FileRegistry

    Registry of files created during the build

    Declaration
    public FileRegistry FileRegistry { get; set; }
    Property Value
    Type Description
    FileRegistry
    Implements
    IDataBuilderResult.FileRegistry

    LocationCount

    The number of addressable assets contained in the build.

    Declaration
    public int LocationCount { get; set; }
    Property Value
    Type Description
    Int32
    Implements
    IDataBuilderResult.LocationCount

    OutputPath

    Path of runtime settings file

    Declaration
    public string OutputPath { get; set; }
    Property Value
    Type Description
    String
    Implements
    IDataBuilderResult.OutputPath

    Methods

    CreateResult<TResult>(String, Int32, String)

    Helper method to create the desired result of a data builder. This should always be used to create the build result with additional details added as needed. The Result.Duration should always be set at the end of the build script in the non-error scenario.

    Declaration
    public static TResult CreateResult<TResult>(string settingsPath, int locCount, string err = "")
        where TResult : IDataBuilderResult
    Parameters
    Type Name Description
    String settingsPath

    Path to the settings.json file (name may not always match that exactly) generated by this build

    Int32 locCount

    Number of locations created by this build

    String err

    Error string if there were problems with the build. Defaults to empty

    Returns
    Type Description
    TResult
    Type Parameters
    Name Description
    TResult

    The actual build result created

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023