docs.unity3d.com
    Show / Hide Table of Contents

    Struct DownloadStatus

    Contains download information for async operations.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.ResourceManagement.AsyncOperations
    Syntax
    public struct DownloadStatus

    Fields

    DownloadedBytes

    The total number of bytes needed to download by the operation and dependencies.

    Declaration
    public long DownloadedBytes
    Field Value
    Type Description
    Int64

    IsDone

    Is the operation completed. This is used to determine if the computed Percent should be 0 or 1 when TotalBytes is 0.

    Declaration
    public bool IsDone
    Field Value
    Type Description
    Boolean

    TotalBytes

    The number of bytes downloaded by the operation and all of its dependencies.

    Declaration
    public long TotalBytes
    Field Value
    Type Description
    Int64

    Properties

    Percent

    Returns the computed percent complete as a float value between 0 & 1. If TotalBytes == 0, 1 is returned.

    Declaration
    public float Percent { get; }
    Property Value
    Type Description
    Single
    Back to top
    Terms of use
    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