Skip to content

Commit 12d6687

Browse files
yaustarsteveny-sc
andauthored
Updated documentation to reflect the behaviour of asset.loaded (playcanvas#3360)
Co-authored-by: Steven Yau <syau@snapchat.com>
1 parent 140170d commit 12d6687

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/asset/asset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const VARIANT_DEFAULT_PRIORITY = ['pvr', 'dxt', 'etc2', 'etc1', 'basis'];
6767
* @property {object} resource A reference to the resource when the asset is loaded. e.g. a {@link Texture} or a {@link Model}
6868
* @property {Array} resources A reference to the resources of the asset when it's loaded. An asset can hold more runtime resources than one e.g. cubemaps
6969
* @property {boolean} preload If true the asset will be loaded during the preload phase of application set up.
70-
* @property {boolean} loaded True if the resource is loaded. e.g. if asset.resource is not null
70+
* @property {boolean} loaded True if the asset has finished attempting to load the resource. It is not guaranteed that the resources are available as there could have been a network error.
7171
* @property {boolean} loading True if the resource is currently being loaded
7272
* @property {AssetRegistry} registry The asset registry that this Asset belongs to
7373
*/

0 commit comments

Comments
 (0)