コード例 #1
0
 /// <summary>
 /// Set maximum resource total size
 /// </summary>
 /// <param name="options"></param>
 /// <param name="newValue"></param>
 /// <returns></returns>
 public static AssetCacheOptions SetMaxResourceTotalSize(this AssetCacheOptions options, int newValue)
 {
     options.Set <int>(Key_MaxResourceTotalSize, newValue);
     return(options);
 }
コード例 #2
0
 /// <summary>
 /// Set option for cache streams
 /// </summary>
 /// <param name="options"></param>
 /// <param name="newValue"></param>
 /// <returns></returns>
 public static AssetCacheOptions SetCacheStreams(this AssetCacheOptions options, bool newValue)
 {
     options.Set <bool>(Key_CacheStreams, newValue);
     return(options);
 }
コード例 #3
0
 /// <summary>
 /// Set whether cache should create clones of keys, or whether to use the keys that come from requests in its cache structures.
 /// </summary>
 /// <param name="options"></param>
 /// <param name="cloneKeys"></param>
 /// <returns></returns>
 public static AssetCacheOptions SetCloneKeys(this AssetCacheOptions options, bool cloneKeys)
 {
     options.Set <bool>(Key_CloneKeys, cloneKeys);
     return(options);
 }