Getting the WebGL URL from running Unity App

Hello,

is it possible to get the URL that started the WebGL app from inside the unity program running in the browser?

For example the app started from site “http://www.mysite.com/apps/mywebgl”

is it possible to get that URL string while inside Unity c# for example?

Thanks

There’s this, but i can’t recall if it’s a legacy from the WebPlayer or if it works with WebGL as well: Unity - Scripting API: Application.absoluteURL

1 Like

Application.absoluteURL does work in WebGL.

/Mikael

I think the documentation is unclear about that but Application.absoluteURL should definitely work on WebGL.

1 Like