SceneLoadCacheOptions
public struct SceneLoadCacheOptions : Hashable
Options for scene load cache.
Note: This is a beta release of this feature and may contain bugs or exhibit unexpected behaviour. Related APIs are subject to change without a deprecation process.
-
Capacity of scene load cache as number of entries. An entry represents the cached data for a loaded scene. At most
MapContext.SceneLoadCacheOptions.capacityentries would be preserved in the cache for the entire duration of MapContext lifetime. DefaultMapContext.SceneLoadCacheOptions.capacityis set to 4. AMapContext.SceneLoadCacheOptions.capacityvalue less than 1 would disable the scene cache, freeing all existing entries from the cache.Declaration
Swift
public var capacity: Int32 -
Creates a new instance.
Declaration
Swift
public init(capacity: Int32 = 4)