docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Initialize

    Initialize(string, string, string, Action<ContentUpdateState>)

    Initialize the content delivery system.

    Declaration
    public static void Initialize(string remoteUrlRoot, string cachePath, string initialContentSet, Action<ContentDeliveryGlobalState.ContentUpdateState> updateStateFunc)
    Parameters
    Type Name Description
    string remoteUrlRoot

    The remote url root in the form of "https://hostname.com/pathToContent/". If this parameter is not specified, content is assumed to be local.

    string cachePath

    The full local path of the content cache. This must be a directory that the application has read and write access to.

    string initialContentSet

    The initial set of content to download. The content sets are given names during the publish process and by default everything is added to the "all" set.

    Action<ContentDeliveryGlobalState.ContentUpdateState> updateStateFunc

    Callback action that will get called whenever the content update state changes.

    In This Article
    • Initialize(string, string, string, Action<ContentUpdateState>)
    Back to top
    Copyright © 2024 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)