Description
Supported Script Types: Interface Scripts • Client Entity Scripts • Avatar Scripts
TheModelCache API manages model cache resources.Properties
| Name | Type | Summary |
|---|---|---|
| numTotal | number |
Total number of total resources. Read-only. |
| numCached | number |
Total number of cached resource. Read-only. |
| sizeTotal | number |
Size in bytes of all resources. Read-only. |
| sizeCached | number |
Size in bytes of all cached resources. Read-only. |
| numGlobalQueriesPending | number |
Total number of global queries pending (across all resource cache managers). Read-only. |
| numGlobalQueriesLoading | number |
Total number of global queries loading (across all resource cache managers). Read-only. |
Methods
| Name | Return Value | Summary |
|---|---|---|
getResourceList
|
Array.<string> |
Gets the URLs of all resources in the cache. |
prefetch
|
ResourceObject |
Prefetches a resource. |
updateTotalSize
|
None |
Deprecated: This function is deprecated and will be removed. |
Signals
| Name | Summary |
|---|---|
dirty
|
Triggered when the cache content has changed. |
Method Details
|
(static) getResourceList( ) → {Array.<string>}
Returns: The URLs of all resources in the cache. |
|---|
|
Gets the URLs of all resources in the cache. ExampleReport cached resources.
|
|
(static) prefetch( url ) → {ResourceObject}
Returns: A resource object. |
||||||
|---|---|---|---|---|---|---|
|
Prefetches a resource. Parameters
ExamplePrefetch a resource and wait until it has loaded.
|
| (static) updateTotalSize( deltaSize ) | ||||||
|---|---|---|---|---|---|---|
|
Deprecated: This function is deprecated and will be removed. Parameters
|
Signal Details
|
dirty(
)
Returns: Signal |
|---|
|
Triggered when the cache content has changed. |