Description
Supported Script Types: Interface Scripts • Client Entity Scripts • Avatar Scripts • Assignment Client Scripts
TheAnimationCache
API manages animation 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 |
---|---|---|
getAnimation
|
AnimationObject |
Gets information about an animation resource. |
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) getAnimation( url ) → {AnimationObject}
Returns: An animation object. |
||||||
---|---|---|---|---|---|---|
Gets information about an animation resource. Parameters
|
(static) getResourceList( ) → {Array.<string>}
Returns: The URLs of all resources in the cache. |
---|
Gets the URLs of all resources in the cache. Example
|
(static) prefetch( url ) → {ResourceObject}
Returns: A resource object. |
||||||
---|---|---|---|---|---|---|
Prefetches a resource. Parameters
Example
|
(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. |