spaceFree
The number of bytes left in this cache before it reaches Cache.maximumAvailableStorageSpace.
Read time 1 minuteLast updated 17 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public long spaceFree { get; }
Remarks
This value is Cache.maximumAvailableStorageSpace minus Cache.spaceOccupied, or 0 if the cache already holds more than the limit, for example after you lower Cache.maximumAvailableStorageSpace. It doesn't account for the free space on the storage device, so with the default Cache.maximumAvailableStorageSpace it's a very large number.
For how Unity frees space when a download doesn't fit, refer to Cache.maximumAvailableStorageSpace.