How I can get string from go.property?

Hello! I want to send a message with a collection id to my “level_loader” script
it looks like this

msg.post('main:/level_loader', 'load_level', { level_id = "level_id_value" })

but I want to set “level_id_value” from the editor, so I use a property

go.property("loading_collection", msg.url(''))
msg.post('main:/level_loader', 'load_level', { level_id = self.loading_collection })

It doesn’t work, but I can’t understand why.
Can you help me? Explain my mistake and what I should do to fix it.

I think you cannot have a string as a property, only a hash.

3 Likes

Correct. Only hashed strings are allowed.

1 Like