Class SingletonCache<TAsset>
Singleton ResourceCache<TAsset> for sharing storage in GameWorld lifetime scope
public class SingletonCache<TAsset> : ResourceCache<TAsset>, IDisposable, IReadOnlyDictionary<string, TAsset>, IReadOnlyCollection<KeyValuePair<string, TAsset>>, IEnumerable<KeyValuePair<string, TAsset>>, IEnumerable where TAsset : Object
Type Parameters
TAsset
- Inheritance
-
ResourceCache<TAsset>SingletonCache<TAsset>
- Implements
-
IReadOnlyDictionary<string, TAsset>
- Inherited Members
Properties
Instance
Get singleton cache for sharing storage in GameWorld lifetime scope
public static ResourceCache<TAsset> Instance { get; }
Property Value
- ResourceCache<TAsset>
Methods
Dispose()
Implementation of IDisposable, release all handles in cache.
public override void Dispose()