docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IDownloadItem

    Represents a single file download request from a Cache Server.

    Namespace: UnityEditor.Build.CacheServer
    Assembly: UnityEditor.CacheServer.dll
    Syntax
    public interface IDownloadItem

    Properties

    Id

    the FileId (guid/hash pair) of the file to download

    Declaration
    FileId Id { get; }
    Property Value
    Type Description
    FileId

    Type

    the FileType for the given FileId to download

    Declaration
    FileType Type { get; }
    Property Value
    Type Description
    FileType

    Methods

    Finish()

    Method called when a download is finished. Used to finalize and cleanup a single file download. e.g. to move a temporary file into place.

    Declaration
    void Finish()

    GetWriteStream(long)

    Provides a writable stream for saving downloaded file bytes

    Declaration
    Stream GetWriteStream(long size)
    Parameters
    Type Name Description
    long size

    Size of file to download

    Returns
    Type Description
    Stream

    A writable stream

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