docs.unity.cn
    Show / Hide Table of Contents

    Method Initialize

    Initialize(String, String, String, Action<ContentDeliveryGlobalState.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.

    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