Storing an API Token as an Editable Property?

Hello! I’m trying to make a little sample project wherein I make an HTTP callout using Defold. My endpoint requires an auth token. On release, this will be passed into the game automatically. However, for testing, I’m going to have to set the token manually.

I was hoping I could just have a property that I could easily edit in the editor, but I discovered that Defold does not support String properties.

Is there any other way I could have this variable be easily editable without having to open the script and edit it every time?

Thank you!

You can set it in game.project and use sys.get_config(...) to get in scripts :smiley:

3 Likes

Awesome! I was wondering if there was a way to do something like that!

Thank you! :slightly_smiling_face: