docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BinaryCatalogInitialization

    Object used to specify custom values for the cache sizes used in Binary Catalogs.

    Inheritance
    object
    BinaryCatalogInitialization
    Implements
    IInitializableObject
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.ResourceManagement.ResourceProviders
    Assembly: Unity.ResourceManager.dll
    Syntax
    [Serializable]
    public class BinaryCatalogInitialization : IInitializableObject

    Fields

    Name Description
    kCatalogLocationCacheSize

    Default size of binary catalog location cache.

    kDefaultBinaryStorageBufferCacheSize

    Default size for binary storage buffer internal cache;

    Properties

    Name Description
    BinaryStorageBufferCacheSize

    This value controls the amount of memory used internally by the storage buffer of the binary catalog. Lower values will use less memory but may result in higher cpu usage as more data will be uncached and will need to be rebuilt. The default value is 128 and should work for most applications.

    CatalogLocationCacheSize

    This value controls the number of ResourceLocations to keep in the internal cache for the binary catalog. Lower values will use less memory but may result in higher cpu usage as more data will be uncached and will need to be rebuilt. The default value is 32 and should work for most applications.

    Methods

    Name Description
    Initialize(string, string)

    Initialize the cache values from the serialized data.

    InitializeAsync(ResourceManager, string, string)

    This is the async initialization.

    ResetToDefaults()

    Reset the cache values to their defaults.

    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)