Description
Supported Script Types: Interface Scripts • Client Entity Scripts • Avatar Scripts • Server Entity Scripts • Assignment Client Scripts
Information about a cached resource. Created by AnimationCache.prefetch, MaterialCache.prefetch, ModelCache.prefetch, SoundCache.prefetch, or TextureCache.prefetch.Properties
| Name | Type | Summary |
|---|---|---|
| url | string |
URL of the resource. Read-only. |
| state | Resource.State |
Current loading state. Read-only. |
| Constructor |
|---|
new ResourceObject( )
|
Methods
| Name | Return Value | Summary |
|---|---|---|
release
|
None |
Releases the resource. |
Signals
| Name | Summary |
|---|---|
progressChanged
|
Triggered when the resource's download progress changes. |
stateChanged
|
Triggered when the resource's loading state changes. |
Method Details
| release( ) |
|---|
|
Releases the resource. |
Signal Details
|
progressChanged(
bytesReceived,
bytesTotal
)
Returns: Signal |
|||||||||
|---|---|---|---|---|---|---|---|---|---|
|
Triggered when the resource's download progress changes. Parameters
|
|
stateChanged(
state
)
Returns: Signal |
||||||
|---|---|---|---|---|---|---|
|
Triggered when the resource's loading state changes. Parameters
|