Get List of loaded assets by type

Get List of loaded assets by type

Hello, just want to ask if there is a way to get a list of loaded assets by type? or at list all the loaded assets?

Looking into the loader class but to no avail :frowning:

decided to use cc.loader.addLoadHandlers()

copied a handler implemented in the engine then added in some code to keep track of the files of a certain type that gets called by it.

all asset loaded is store at _cache which is in CCLoader, you can scan this array and filter by type.
cc.loader.addLoadHandlers() is used for add custom load handler, like the downloader, the md5-pipe of the engine

thanks for the answer @Big_Bear. :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.