Class BuildProgress | Entities | 0.2.0-preview.18
docs.unity3d.com
    Show / Hide Table of Contents

    Class BuildProgress

    Scoped progress indicator that will clear itself on dispose.

    Inheritance
    Object
    BuildProgress
    Namespace: Unity.Build
    Syntax
    public sealed class BuildProgress : IDisposable

    Constructors

    BuildProgress(String, String, Single)

    Initialize a new instance of the BuildProgress class, which acts as a scoped progress indicator.

    Declaration
    public BuildProgress(string title, string info, float percent = 0F)
    Parameters
    Type Name Description
    String title

    Title of the progress indicator.

    String info

    Information of the progress indicator.

    Single percent

    Completion percent of the progress indicator.

    Properties

    Info

    Update or get the information of the progress indicator.

    Declaration
    public string Info { get; set; }
    Property Value
    Type Description
    String

    Percent

    Update or get the completion percent of the progress indicator.

    Declaration
    public float Percent { get; set; }
    Property Value
    Type Description
    Single

    Title

    Update or get the title of the progress indicator.

    Declaration
    public string Title { get; set; }
    Property Value
    Type Description
    String

    Methods

    Dispose()

    Declaration
    public void Dispose()

    Update(String, Single)

    Update the progress indicator.

    Declaration
    public bool Update(string info, float percent)
    Parameters
    Type Name Description
    String info

    Information of the progress indicator.

    Single percent

    Completion percent of the progress indicator.

    Returns
    Type Description
    Boolean

    Update(String, String, Single)

    Update the progress indicator.

    Declaration
    public bool Update(string title, string info, float percent)
    Parameters
    Type Name Description
    String title

    Title of the progress indicator.

    String info

    Information of the progress indicator.

    Single percent

    Completion percent of the progress indicator.

    Returns
    Type Description
    Boolean

    Whether or not the user had pressed the cancel button.

    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