How to manually check if a collection is loaded?

How can I manually check if a collection is loaded?

One option is to keep track of the proxy_loaded messages sent to your script in a Lua table after sending a load message:

If you are only interested in double checking which proxies are loaded at runtime for efficiency or peace-of-mind’s sake, you can view all loaded resources with the profiler:

2 Likes

This is the recommended approach! We have no Defold API function to check this and it is missing by design. We don’t want to litter the Defold API with a lot of status check functions which may encourage frequent polling when it is possible for the developer to track state changes and handle these changes in a reactive way.

2 Likes