How to make an Unity WebGL project to read a kind of configuration file (any format), which is editable after the "Build" from Unity workspace.

Below is the sample of Build directory, which contains the packaged files enter image description here

The use case is to have the backend API using by this WebGL project to be configurable at the hosting server, so that when the player/user browse it, it knows where to connect to the backend API.

The closest part I could explore currently is to implement the custom Javascript browser scripting. Any advice or any existing API could be used from Unity?

0 Answers