How do you get place's ID using their name?

image

As the title says it, the alternative would be to make a huge table, where the key’s the name and the value’s the assetId, but this game’ll be huge with tons of planets, so it’ll become a huge pain with updates later on. Isn’t there a more practical way to get an asset’s ID by using their name? I don’t know, some hidden/not well known Service maybe?

2 Likes

Do you create these places by script or manually in studio?

You could use GetGamePlacesAsync which only returns the places created by you manually, or use external API requests to retrieve all games.

4 Likes

How do you create a place through a script?

3 Likes
3 Likes

just what I was looking for, I can’t believe I didn’t find it earlier even tho I searched everywhere :sweat_smile:. Thanks a lot!

3 Likes