PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

RequestQueueSize

ContentProvider

int

RequestQueueSize gives the number of items in ContentProvider's request queue that are waiting to be downloaded.

Items are added to the client’s request queue when an asset is used for the first time or ContentProvider/PreloadAsync is called.

Developers are advised not to use RequestQueueSize to create loading bars. This is because the queue size can both increase and decrease over time as new assets are added and downloaded. Developers looking to display loading progress should load assets one at a time (see example below).


Code Samples


ContentProvider Loading Bar

This code sample demonstrates how ContentProvider/PreloadAsync can be used to create a simple loading bar in a game, by loading the assets one at a time.