Class BinaryCatalogInitialization
Object used to specify custom values for the cache sizes used in Binary Catalogs.
Implements
Inherited Members
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. |