Class CacheInitialization | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class CacheInitialization

    IInitializableObject that sets up the Caching system.

    Inheritance
    System.Object
    CacheInitialization
    Namespace: UnityEngine.AddressableAssets.Initialization
    Syntax
    [Serializable]
    public class CacheInitialization : IInitializableObject

    Properties

    RootPath

    The root path of the cache.

    Declaration
    public static string RootPath { get; }
    Property Value
    Type Description
    System.String

    Methods

    Initialize(String, String)

    Sets properties of the Caching system.

    Declaration
    public bool Initialize(string id, string dataStr)
    Parameters
    Type Name Description
    System.String id

    The id of thei object.

    System.String dataStr

    The JSON serialized CacheInitializationData object.

    Returns
    Type Description
    System.Boolean

    True if the initialization succeeded.

    Implements
    IInitializableObject.Initialize(String, String)
    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