So… I’m trying to send a message to a script that is inside a game object that was generated by a factory. I added the script to the collection and used that URL, but it only gets triggered from that one script and not any of the generated ones. Any ideas? Thanks a lot guys!
1 Like
To send a message to a generated object you need to store that object’s “id” which is returned from the factory.create function, or get its url some other way. If you put print(msg.url())
in the init function of the script on your generated object you can see “where” it is. They don’t get spawned into the collection that their factory is in.
3 Likes
Thanks a ton @ross.grams ! That will do it
1 Like