Load file with www on relative path

I am using www class to load different type of file (model, material, txt, csv).
It is possible load it from relative path without give absolute address?
So i can move project in different server without re-compile every time with the correct address…

Thanks.
S.

You could read out Application.absoluteURL to get the path of your web player file / webgl build on the server. form there you can go can create a variable that all other path can attach to.

Unity - Scripting API: Application.absoluteURL

Hello @benfattino

You need to implement a JSON / XML parsing for it.
Keep your project url in json / xml file on a permanent location on a server / cloud.

Hardcode the address of json / xml file in your build and fetch the project url from json / xml.
If you need to move to different server just change the json / xml. So, no need to compile and build again.