ModelCache

Description

API to manage model cache resources.

Supported Script Types: Interface Scripts • Client Entity Scripts • Avatar Scripts

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.

Methods

Name Return Value Summary
getResourceList Array.<string> Get the list of all resource URLs.
prefetch ResourceObject Prefetches a resource.
updateTotalSize None

Signals

Name Summary
dirty

Method Details

(static) getResourceList( ) → {Array.<string>}
Returns: Array.<string>

Get the list of all resource URLs.

(static) prefetch( url ) → {ResourceObject}
Returns: ResourceObject

Prefetches a resource.

Parameters

Name Type Description
url string URL of the resource to prefetch.
(static) updateTotalSize( deltaSize )

Parameters

Name Type Description
deltaSize number

Signal Details

dirty( )
Returns: Signal