ResourceObject

Available in: Interface Scripts Client Entity Scripts Server Entity Scripts Assignment Client Scripts

Methods

Signals

Properties:
Name Type Description
url string URL of this resource.
state Resource.State Current loading state.

Methods

release()
Release this resource.

Signals

progressChanged(bytesReceived, bytesTotal) → {Signal}
Triggered when download progress for this resource has changed.
Parameters:
Name Type Description
bytesReceived number Byytes downloaded so far.
bytesTotal number Total number of bytes in the resource.
Returns:
Type: Signal
stateChanged(state) → {Signal}
Triggered when resource loading state has changed.
Parameters:
Name Type Description
state Resource.State New state.
Returns:
Type: Signal