As the title says, I am having some difficulty with message passing.
I have used message passing for quite some time now and I believe I have got the hang of it. In every situation that I encountered until now I have been able to use them, so I feel a little stumped by the fact that I cannot see what goes wrong in this instance.
I am using collection proxies, and the relevant parts of the project are (in the hierarchy):
- Collection A (also with ID as such instead of ‘default’)
- A factory producing GO’s called ‘a’
- Collection B (as above)
- A GO called ‘b’
- A main collection
- A loader GO containing proxies for A and B
Now, I load A and B using proxies just fine, and everything works great. At least, it works great until I wish to pass a message from one of the game objects ‘a’ produced by the factory to ‘b’, and to do so I thought the proper syntax would be to set as recipient url as “B:/b”, but this only produces the following error message:
“Could not send message ‘whatever_message_I_have’ from ‘A:/instance1#a’ to ‘B:/b’.”
Strangely, it does not (to me) seem to be the usual error message that is printed when the recipient is not found.
Is the issue somehow related to instances produced by factories? Is there a better (well, anything is better than a non-working way) way for sending messages like the ones I want?
Thank you!