Unable to find collection proxy component (SOLVED)

Using Defold 1.2.180

I have a collection proxy component,
if I load it using
msg.post(url,"load")
-> it works

if I try to check the missingresources using
local missing_resources = collectionproxy.missing_resources(url)

then I get:

Unable to find collection proxy component

i can’t understand what’s happening. Help would be appreciated!

OK I found out how to solve this.

You have to call the collectionproxy.missing_resources function from a script in the same object as the collection proxy

Didn’t see that mentioned, or maybe my understand of Defold is still limited. Hope it can help some people with the same problem!

1 Like

Are you sure about this? Can you please show an example of where it isn’t working?

Never mind.
I got confused. I was actually calling a global function, therefore depending from where I was calling that function, the collectionproxy could be found, or not.

I guess I needed some sleep because this is a rookie’s mistake :slight_smile:
I will delete this topic later, it will confuse people more than anything.
Sorry for the confusion!

1 Like

Yes, that explains it! Happy to hear you figured it out though!